+ Reply to Thread
Results 1 to 2 of 2

use variables to specify a range

Hybrid View

  1. #1
    Registered User
    Join Date
    04-05-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    6

    use variables to specify a range

    This seems like a very simple question but I can't seem to find the answer....

    How can I specify a range without knowing the range? A2 will always be the starting range and would like to use Range("A65536").End(xlUp).Select (or some other method) to find the last cell with text.

    so...

    Instead of Set x = Range("A1:A10")

    Is there a way to use;

    Range("A1:Range("A65536").End(xlUp).Select) or some other variant?

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: use variables to specify a range

    hi, nai0248, one of the options:

    Set x = range([a1],[a65536].end(xlup))

+ 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