|
-
Mar 17th, 2013, 09:17 AM
#1
Thread Starter
Lively Member
[RESOLVED] Error 1004 (application or object error) : filldown command
Hi,
I have a workbook which is running code and it creates a number of new workbooks. Upon creating a workbook, the code will copy some values to the new workbook onto sheet1 I then want to fill some columns with the value located in row 2 of each column. However, I'm getting the 1004 error when the line below is executed;
Code:
ActiveWorkbook.ActiveSheet.Range(Cells(2, 1), Cells(22, 1)).FillDown
Any idea how I can get teh line to work?
THanks.
-
Mar 17th, 2013, 11:07 AM
#2
Thread Starter
Lively Member
Re: Error 1004 (application or object error) : filldown command
Fixed it.
I guess it's not possible to use (cells(x,y), cells(a, b) within a range or with the filldown. I just replaced the 2nd CELLS with a resize and the code runs through perfectly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|