Results 1 to 5 of 5

Extract the defined name from a cell

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Question Extract the defined name from a cell

    So on my Excel spreadsheet I can select cell B2 of Sheet1 and using the name box give that cell a name such as "Important_Cell".

    I know using VBA I can access the cell using the name, such as:
    Sheets(1).Range("Important_Cell").value = "This is it!"
    But can I get that name FROM the cell?

    I have tried the following:
    name_string = Sheets(1).Range("B2").Name
    But all that gave me in name_string was:

    "='Sheet1'!$B$1"

    Is there anyway to extract the actual defined name?

    Thanks
    Last edited by Phil_V; 06-10-2009 at 09:11 AM.
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

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