+ Reply to Thread
Results 1 to 7 of 7

autofill in macro range is constant- how can I code to be a variable range?

Hybrid View

  1. #1
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: autofill in macro range is constant- how can I code to be a variable range?

    You missed part of my post then.
    If so, based on your example is that column AR?
    Based on your latest post, that is column A (or B or C). So change the code to:
    Range("AR4:AW" & Range("A" & Rows.Count).End(xlUp).Row).FillDown
    This will find the last used row in column A, and use that to set the filldown limit.

  2. #2
    Registered User
    Join Date
    01-26-2010
    Location
    united states
    MS-Off Ver
    Excel 2003/Excel 2007
    Posts
    27

    Re: autofill in macro range is constant- how can I code to be a variable range?

    It worked. Thanks so much. -Marie

+ 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