+ Reply to Thread
Results 1 to 2 of 2

turning selection into a range

  1. #1
    Registered User
    Join Date
    08-24-2005
    Posts
    26

    Question turning selection into a range

    A few cells are selected and my macro is run, how do i define a range out of the selection. in other words the range should be the cells that are selected. how?

    Thanx

  2. #2
    Registered User
    Join Date
    08-24-2005
    Location
    Philippines
    Posts
    75
    The 'Selection' property already returns a Range of selected cells...
    If you want to assign the selected cells to a Range variable, you can do this:

    Dim YourRange As Range
    Set YourRange = Selection


    Quote Originally Posted by schoujar
    A few cells are selected and my macro is run, how do i define a range out of the selection. in other words the range should be the cells that are selected. how?

    Thanx

+ 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