+ Reply to Thread
Results 1 to 4 of 4

How to set range within a macro based on what range is selected on the worksheet

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    How to set range within a macro based on what range is selected on the worksheet

    I set a range for my current macro like this:

    Please Login or Register  to view this content.
    and then do what I need to do with it. Is there a way to do the Set Rng command but instead of using Range("A1:A100"), use the range that I currrently have selected on the worksheet?

    Ultimatley this is used in the following code:

    Please Login or Register  to view this content.
    Thank you
    Last edited by luv2glyd; 03-29-2013 at 12:47 PM.
    You either quit or become really good at it. There are no other choices.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to set range within a macro based on what range is selected on the worksheet

    Have you tried this?

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: How to set range within a macro based on what range is selected on the worksheet

    That works! Thank you.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to set range within a macro based on what range is selected on the worksheet

    luv,
    You are welcome!

+ 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