+ Reply to Thread
Results 1 to 5 of 5

Autofill in VBA with a dynamic "Destination" range

  1. #1
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Autofill in VBA with a dynamic "Destination" range

    I'm trying to set up this macro to autofill in VBA:

    Please Login or Register  to view this content.
    The length of the table will vary, so I need the autofill to determine it's own "Destination" value based on the length of column A.

    See attached for sample.

    Cheers,
    Attached Files Attached Files
    Last edited by ConneXionLost; 05-04-2011 at 04:35 PM.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,067

    Re: Autofill in VBA with a dynamic "Destination" range

    Try this:

    Please Login or Register  to view this content.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Autofill in VBA with a dynamic "Destination" range

    Avoid 'select' and 'activate' in VBA.

    Please Login or Register  to view this content.



  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Autofill in VBA with a dynamic "Destination" range

    Works great!

    Thanks for the help in cleaning up the code too!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,067

    Re: Autofill in VBA with a dynamic "Destination" range

    You're welcome. Thanks for the feedback.

+ 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