+ Reply to Thread
Results 1 to 6 of 6

Run-Time Error '1004' AutoFill method of Range class Failed

  1. #1
    Registered User
    Join Date
    05-06-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Run-Time Error '1004' AutoFill method of Range class Failed

    Hey guys,

    This is really weird and I don't know whats wrong.

    I have been running this macro for a bit and worked fine. Then have just started giving me the error.

    Any Ideas?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Run-Time Error '1004' AutoFill method of Range class Failed

    Hi RS944

    I'd suggest changing this line of Code
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Why??? Google "used range excel vba".
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Run-Time Error '1004' AutoFill method of Range class Failed

    If a worksheet only had only two used rows, the Autofill could error. As an example, this code will cause the same Autofill error.
    Please Login or Register  to view this content.
    Try this...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-06-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Run-Time Error '1004' AutoFill method of Range class Failed

    Hey guys thanks for all the suggestions.

    What I an trying to do is copy the formulas from cells O2, P2, Q2, R2 down to the next rows every time I add a new row. I have a macro that will run this macro every 15 minutes so just need some code that will copy from rows above. If there is a better code than what I having I am open to suggestions.

    Also I am getting the error from the first Range line (when I debug it)

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Run-Time Error '1004' AutoFill method of Range class Failed

    Did you try the suggestions and if yes, what happened?

  6. #6
    Registered User
    Join Date
    05-06-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Run-Time Error '1004' AutoFill method of Range class Failed

    Hey AlphaFrog,

    Yes I did try the first one and still got same error but just retried yours and it worked.

    ....I had error when I just posted a minute ago. oops

    But seems to be all good for now. thank you very much. yours seems to work like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1