+ Reply to Thread
Results 1 to 3 of 3

Autofill error

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Pleasanton, CA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Autofill error

    A macro I'm writing uses the identical autofill verbiage as another that runs successfully for me, but every time I try to run this one I get runtime error 1004: "Autofill Method of of range class failed". The code follows:
    Please Login or Register  to view this content.
    I added the MsgBox just to make confirm the value in the RowNum variable is correct. I've tried it as shown, with the range already selected, and without--both give the same error message.

    Can anyone tell me what's wrong?

    Thank you,
    David

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

    Re: Autofill error

    Replace this...
    Please Login or Register  to view this content.
    With this...
    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 11-12-2013 at 10:52 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Pleasanton, CA
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Autofill error

    That worked perfectly. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Autofill code error
    By stevetothink in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2013, 01:17 PM
  2. AutoFill Error
    By excelstudent24 in forum Excel General
    Replies: 1
    Last Post: 09-26-2012, 10:30 PM
  3. AutoFill error
    By bottorml in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2008, 01:16 PM
  4. Autofill error
    By adiman84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2008, 04:29 PM
  5. [SOLVED] Autofill Error
    By Edgar Thoemmes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2005, 11:06 PM

Tags for this Thread

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