+ Reply to Thread
Results 1 to 2 of 2

create list of named ranges with extra column to contain worksheet name

  1. #1
    Registered User
    Join Date
    03-01-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2010
    Posts
    64

    create list of named ranges with extra column to contain worksheet name

    Hello all

    I use the ListNames method absolutely fine to create my list of named ranges in my workbooks. So far so good but what would I do to add a third column to my named range table that simply contains the name of the worksheet each named range is located on please?

    Any and all help gratefully received as ever

    Kenny

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: create list of named ranges with extra column to contain worksheet name

    Hello Kenny,

    Use the Parent property of the Range to return the Worksheet it belongs to. To get the worksheet name use Parent.Name. E.g., MyRange.Parent.Name
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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] Create multiple named ranges from a 2 column list
    By davsth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2017, 07:29 AM
  2. Create two dynamic named ranges in the same column?
    By nobodyukno in forum Excel General
    Replies: 1
    Last Post: 05-05-2017, 11:10 AM
  3. Replies: 1
    Last Post: 03-29-2017, 10:36 AM
  4. Replies: 3
    Last Post: 07-15-2016, 06:45 AM
  5. Replies: 3
    Last Post: 01-14-2015, 05:22 AM
  6. Use list to create named ranges
    By gerenrich in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2014, 04:29 AM
  7. Replies: 2
    Last Post: 01-27-2014, 08:04 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