+ Reply to Thread
Results 1 to 4 of 4

Select Range in VBA using Variables

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007/10
    Posts
    43

    Select Range in VBA using Variables

    Hi all--

    I'm looking up to set up a range using just variables. This is what I thought it would be, but it's not working correctly. Any help would be appreciated!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Select Range in VBA using Variables

    Easy fix:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    10-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007/10
    Posts
    43

    Re: Select Range in VBA using Variables

    Son of a gun, so close...thanks!!

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Select Range in VBA using Variables



    There's an explanation why some objects need 'Set', related to declaring the object itself, rather than the default properties of the object...

    I just remember that you need to SET a range

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Select range by using variables for row and column
    By Chris79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2012, 10:26 AM
  2. Select Range using variables
    By rvc81 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2010, 08:05 AM
  3. Using variables for range select
    By powers023 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2010, 08:24 PM
  4. Select Range using variables
    By StephanieH in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2005, 11:50 AM
  5. Range.Select Using Variables - need syntax
    By gradientS in forum Excel General
    Replies: 4
    Last Post: 02-24-2005, 01:12 AM

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