+ Reply to Thread
Results 1 to 3 of 3

VBA Dynamic Range selection

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    VBA Dynamic Range selection

    Hi,
    I have some macro to do, and I stop in one point. I dunno how to create a massive dynamic ranges for formulas in VBA. Let me show my code so far (this is just a part of the macro)

    Please Login or Register  to view this content.
    What I need is the macro should activate the Sort, and jump to the last Filled line, after Fill out the blank ones till the end of the table....

    OK, so my problem is, I do not know, where should start the formula. I know that the formula should stop at the lastrow... with line like this:
    Please Login or Register  to view this content.
    How can I set the proper range?

    Could anyone help me? that would be awesome.
    Thanks in Advance,
    Arrabonae

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: VBA Dynamic Range selection

    This finds the last used cell row

    Please Login or Register  to view this content.
    This finds the end of your table

    Please Login or Register  to view this content.
    So the range would be like this

    Please Login or Register  to view this content.
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    07-10-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: VBA Dynamic Range selection

    OMG Thanks you very much!!

    That's nice Really thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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