+ Reply to Thread
Results 1 to 3 of 3

Dynamic Auto-Fill Range based upon Specific number of rows

  1. #1
    Registered User
    Join Date
    MS-Off Ver
    Excel 2003

    Question Dynamic Auto-Fill Range based upon Specific number of rows

    Hi - I am trying to create a macro that will select the last row of cells in column CA:EH and drag them down through the previous quarter end. To do this I have created a function to get the number of rows the data must be pulled down called weekCount.

    However, I am having an issue with coding the AutoFill range. I think that it's getting confused between row or select. I'm also not sure that I formatted the AutoFill range correctly for this scenario. Can someone please take a look at the code below?
    Please Login or Register  to view this content.
    Last edited by arlu1201; 04-02-2013 at 03:53 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    Dubai, UAE
    MS-Off Ver
    1997 - 2016

    Re: Dynamic Auto-Fill Range based upon Specific number of rows

    Hi a333,

    Suggest you to upload the Excel workbook to test / correct your above code along with your expected results.

    Also, please follow code tags when you post any code, see forum rules:-

    <click on below * if this helps>
    +91 9810929744

  3. #3
    Administrator arlu1201's Avatar
    Join Date
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007

    Re: Dynamic Auto-Fill Range based upon Specific number of rows

    Thanks Dilip.


    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts