Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extracting defined names


How can I assign the defined name of a cell (the name assigned manuall
by Insert--Name--Define) to a variable in VBA

--
jsw4
-----------------------------------------------------------------------
jsw47's Profile: http://www.excelforum.com/member.php...fo&userid=3099
View this thread: http://www.excelforum.com/showthread.php?threadid=54725

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Extracting defined names

If its a single cell name

Activecell.name.name

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"jsw47" wrote in
message ...

How can I assign the defined name of a cell (the name assigned manually
by Insert--Name--Define) to a variable in VBA?


--
jsw47
------------------------------------------------------------------------
jsw47's Profile:

http://www.excelforum.com/member.php...o&userid=30995
View this thread: http://www.excelforum.com/showthread...hreadid=547250



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Extracting defined names

Try some code like the following:


Dim S As String
S = Range("C3").Name.Name
Debug.Print S



"jsw47"
wrote in message
...

How can I assign the defined name of a cell (the name assigned
manually
by Insert--Name--Define) to a variable in VBA?


--
jsw47
------------------------------------------------------------------------
jsw47's Profile:
http://www.excelforum.com/member.php...o&userid=30995
View this thread:
http://www.excelforum.com/showthread...hreadid=547250



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting parts of names klysell Excel Worksheet Functions 6 May 3rd 07 07:17 PM
extracting names CJ Excel Discussion (Misc queries) 10 January 11th 07 05:28 AM
Extracting names and suffixes Rookie_User Excel Discussion (Misc queries) 2 September 18th 06 05:53 PM
Extracting tab names MLK Excel Worksheet Functions 5 July 19th 06 08:52 PM
Extracting worksheet names.... johnT Excel Worksheet Functions 5 April 4th 05 02:39 PM


All times are GMT +1. The time now is 09:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"