+ 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
    12-17-2012
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    3

    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
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    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:-
    http://www.excelforum.com/forum-rule...rum-rules.html


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey
    +91 9810929744
    dilipandey@gmail.com

  3. #3
    Administrator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,147

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

    Thanks Dilip.

    a333,

    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)

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