+ Reply to Thread
Results 1 to 3 of 3

AutoFill down X number of rows.

  1. #1
    Forum Contributor
    Join Date
    07-01-2005
    Posts
    103

    AutoFill down X number of rows.

    Hello. I am trying to autofill a formula down a certain number of rows. The number is located in cell L4. I can't seem to figure out the syntax for this. This is what I have, but it does not work.

    Selection.AutoFill Destination:=Range("A1:A" + Cells(4, 12)), Type:=xlFillDefault

    Any Help would be great. TIA
    Paul

  2. #2
    JE McGimpsey
    Guest

    Re: AutoFill down X number of rows.

    One way:


    With Selection
    .AutoFill Destination:=.Resize(Cells(4, 12).Value, 1), _
    Type:=xlFillDefault
    End With

    In article <Paul987.26s1sc_1145896507.4996@excelforum-nospam.com>,
    Paul987 <Paul987.26s1sc_1145896507.4996@excelforum-nospam.com> wrote:

    > Hello. I am trying to autofill a formula down a certain number of rows.
    > The number is located in cell L4. I can't seem to figure out the
    > syntax for this. This is what I have, but it does not work.
    >
    > Selection.AutoFill Destination:=Range("A1:A" + Cells(4, 12)),
    > Type:=xlFillDefault


  3. #3
    Forum Contributor
    Join Date
    07-01-2005
    Posts
    103
    I only needed one way. That worked well. Thanks
    Paul

+ 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