Results 1 to 2 of 2

Thread: [RESOLVED] Error 1004 (application or object error) : filldown command

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2012
    Posts
    90

    Resolved [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.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jun 2012
    Posts
    90

    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
  •  



Click Here to Expand Forum to Full Width