+ Reply to Thread
Results 1 to 6 of 6

AutoFill question

  1. #1
    Registered User
    Join Date
    07-18-2007
    Location
    US
    Posts
    33

    AutoFill question

    I'm trying to use variables to define an autofill range. As an example:

    Please Login or Register  to view this content.
    Yet I keep getting Run-time error 1004
    AutoFill method of range class failed

    TIA

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    code looks OK

    Hi
    I used xl 2000 and it worked for me. I put Jan in a1 and it filled till may.
    Ravi

  3. #3
    Registered User
    Join Date
    07-18-2007
    Location
    US
    Posts
    33
    Hmm... Ok, let's try this:
    Please Login or Register  to view this content.
    I thought the rest of this was ok which is why I didn't include it originally, I guess I was wrong.

    Thanks again.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You can autofill across then down, or down then across, but not both across and down. Same as the user interface -- you can't drag the fill handle diagonally.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764
    Hi
    In last but one row of the code, you select column M. In last line you define the range for col A (ie 1). try 13 (M)
    Ravi

  6. #6
    Registered User
    Join Date
    07-18-2007
    Location
    US
    Posts
    33
    Quote Originally Posted by ravishankar View Post
    Hi
    In last but one row of the code, you select column M. In last line you define the range for col A (ie 1). try 13 (M)
    Ravi
    Thanks I can't believe it was something that dumb that I missed.

+ 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