+ Reply to Thread
Results 1 to 3 of 3

Autofill with a variable range

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    grinnell, iowa
    MS-Off Ver
    Excel 2007
    Posts
    79

    Autofill with a variable range

    Hey,
    I have a formula in cell C1, and I want to drag it down to the end of the used range of the column with vba. I drag it down in vba, but it goes down far below the range I use, so I want to specify that it stops dragging down once it hits the last row. I even have a way to find that last row, as you can see below. The trouble I'm having is the syntax for the Destination -- I don't know how to denote that the destination range should be from C,1 to c, mylastrow. Any ideas?

    Please Login or Register  to view this content.
    Last edited by Jbm444; 06-23-2010 at 04:37 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Autofill with a variable range

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-11-2010
    Location
    grinnell, iowa
    MS-Off Ver
    Excel 2007
    Posts
    79

    Re: Autofill with a variable range

    Thanks shg, that's perfect.

+ 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