473,382 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Code (Excel VBA) not working any more. Please help

41
Hi,

I have some code that I have been using for more than a year. Excel VBA. Today it stopped working. I have no idea why. Here is the code:
Expand|Select|Wrap|Line Numbers
  1.   Range ("E1").Select
  2. If IsEmpty(ActiveCell) Then Exit Sub
  3.   Range(ActiveCell, Cells(Rows.Count, _
  4.        ActiveCell.Column - 1).End(xlUp).Offset(0, 1)).FillDown
  5. End Sub
It used to copy what was in cell E1 down until there was no data in column D. I use this for formulas. Today, however, it copies the value in cell E1 and not the formula.

Please help! Thanks in advance.

I just tried it in a new workbook and it still works. Any ideas on why it won't work in the two workbooks I created yesterday? Thanks again.
May 17 '07 #1
2 3970
danp129
323 Expert 256MB
My only idea would be to right click column E and format it as general, then double click E1 and then press enter. Then run it again.
May 17 '07 #2
pixie
41
My only idea would be to right click column E and format it as general, then double click E1 and then press enter. Then run it again.
Hi, I tried that and no luck. Thand you though. Found some new code to do the same thing that I want and it works fine. No idea though why the original code just won't work on those two workbooks. I just used it in a new workbook and works fine.
May 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
8
by: RompStar | last post by:
I am in the learning stages on MS Access and VBA for access, know more about some parts then others. But it dones't look that bad, the VBA, because I am used to VBA for Excel, but I am not sure...
0
by: nit22 | last post by:
If I find the data in excel through word vba in mac, the find statement automaticaly closed the word document. But this coding is working in Excel vba. I don't know the problem please help me. ...
1
by: barnzee | last post by:
Hi all, newbie here, but having a go I am trying to build a stock watchlist in excel 2007 with a dynamic link to a DDE server (paid for from a broker).There is no add-in or plug-in, I just CTL ALT...
1
by: amitaglawe | last post by:
I have some requirements inwhich i have used picture box application in VB and now i have to do same application and i am looking for a picture box application in VBA excel which i am not able to...
5
by: Jeff Moulard | last post by:
I have an issue with excel VBA proc created under Excel-2000 VBA-6.0 (and working well) and the same VBA proc migrated to Excel-2003 VBA-6.3 For example on keyword "Mid" Rty =...
2
by: prakashsakthivel | last post by:
What I want to know is that while one excel application is closed by VBA code from module, another excel application has to be opened. That means, I have written code to open new excel sheet in the...
0
by: JFKJr | last post by:
I have an excel file, which has columns C and D grouped together, I am trying to delete blank columns and rows from the excel file, ungroup the columns and import the file to MS Access using Access...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.