+ Reply to Thread
Results 1 to 2 of 2

VBA for selecting a range to fill a selection

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    Alexandria, VA
    MS-Off Ver
    Excel 2007
    Posts
    15

    VBA for selecting a range to fill a selection

    I have to run reports every week where I show the number of days items are pending some sort of action. I use an autofill action in a macro but the number of rows changes every week. Here is the current section of my macro that I use. I just input a row number that I know will not exceed the number of rows required by my data (12900). What can I replace this with (Selection.AutoFill Destination:=Range("J2:J12900") so it will only fill the number of rows current filled in in either row I or K?


    Please Login or Register  to view this content.
    I have a date in cell s1 that I subtract from the date in row "I".
    I then copy the result of row J and paste it as values.
    Last edited by Cutter; 07-30-2012 at 01:14 PM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: VBA for selecting a range to fill a selection

    @ mbesspiata

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

+ 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