+ Reply to Thread
Results 1 to 4 of 4

identify defined names in VBA code

  1. #1
    Forum Contributor
    Join Date
    01-31-2007
    Location
    Aschaffenburg, Germany
    MS-Off Ver
    Office 2013
    Posts
    104

    identify defined names in VBA code

    Using Excel 2003 VBA, I couldn't find a possibility to find out the defined name of a selected range, especially when I don't know that range as in a Worksheet_Change macro, so I created the below function.

    Does anybody know an easier way to do this without having to use the .ListNames command which will write the names and references into a spread sheet?

    Any help will be welcome!

    Mike


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-27-2006
    Posts
    310
    Please Login or Register  to view this content.
    http://www.cpearson.com/excel/named.htm

    example using target
    Please Login or Register  to view this content.
    condensed without using a seperate function
    Please Login or Register  to view this content.
    Last edited by SuitedAces; 01-09-2008 at 02:32 PM.

  3. #3
    Forum Contributor
    Join Date
    06-27-2006
    Posts
    310
    They teach good manners in germany apparently.

  4. #4
    Forum Contributor
    Join Date
    01-31-2007
    Location
    Aschaffenburg, Germany
    MS-Off Ver
    Office 2013
    Posts
    104

    You're my hero

    Thanks, SuitedAces, this is great help!

    I wonder how someone finds out such syntax. I could not find Target.Name.Name in VBA Help.
    Of course, I stumbled across Target.Name, but this only gives me "=Sheet1!$A$1".

    You made my day!

    Mike

+ 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