+ Reply to Thread
Results 1 to 5 of 5

View range assigned to range name

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    Marnhull, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    View range assigned to range name

    I have assigned a range name to the current range in VBA. How do I check that the range has been assigned correctly?

    Thank you

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: View range assigned to range name

    Please Login or Register  to view this content.
    The named range will be in the name dropdown

    2021-02-14_9-11-10.jpg

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    Marnhull, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: View range assigned to range name

    The name doesn't appear in the dropdown but I just added a couple of lines:

    Set rngPayRange = Selection
    rngPayRange.Select

    Then I was able to see the highlighted range which confirmed the macro worked OK!

    Thanks

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: View range assigned to range name

    That is not naming a range, you are setting a range variable.

  5. #5
    Registered User
    Join Date
    11-30-2012
    Location
    Marnhull, England
    MS-Off Ver
    Excel 2007
    Posts
    9
    Quote Originally Posted by davesexcel View Post
    That is not naming a range, you are setting a range variable.
    Thank you, yes I realise that now.

+ 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] Pick up leave assigned from date range
    By dineshiam in forum Excel General
    Replies: 6
    Last Post: 07-16-2020, 01:38 AM
  2. Replies: 2
    Last Post: 09-01-2017, 05:43 PM
  3. [SOLVED] Min of the numbers assigned for all the values found in a range
    By anshul1719 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-15-2016, 02:30 AM
  4. [SOLVED] Min of the numbers assigned to all values in a range
    By anshul1719 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2016, 12:21 AM
  5. [SOLVED] Macro if detect any value put assigned value in all range
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2012, 12:21 PM
  6. Range assigned to array
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2011, 09:30 AM
  7. Can a range name be assigned to a formula?
    By DorothyFan1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2011, 09:21 AM

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