If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Range Names - creating a list of

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-05, 12:55
Krista327 Krista327 is offline
Registered User
 
Join Date: May 2005
Posts: 89
Range Names - creating a list of

Is there any way to create a list of Range names? I created a bunch of names, and now I really need to view all of the names and the referenced cells so that I can use them in code.
Reply With Quote
  #2 (permalink)  
Old 10-26-05, 13:10
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. The best thing to do is download the FREE add-in NameManager. It allows you to do that (and much, much more). I use it everyday (as part of the paid version of FastExcel add-in).
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 10-27-05, 07:58
savbill savbill is offline
Registered User
 
Join Date: Feb 2004
Posts: 533
Quote:
Originally Posted by Krista327
Is there any way to create a list of Range names?
Use the Insert Name Menu: 'Insert->Name->Paste...'

This opens a dialog to paste a single name or list of all names. 'Insert->Names->Define...' allows you to view the list in a dialog window and change, delete, or redifine them.
__________________
~

Bill
Reply With Quote
  #4 (permalink)  
Old 10-27-05, 08:19
mas_detokyo mas_detokyo is offline
Registered User
 
Join Date: Oct 2005
Location: as in handle
Posts: 2
An alternative with VBA code. This lists up all ranges.
Code:
Sub Temp()
Dim varName
For Each varName In ActiveWorkbook.Names
      Debug.Print varName.Name & varName.RefersTo
Next
End Sub
Cheers,
Reply With Quote
  #5 (permalink)  
Old 10-27-05, 16:05
Krista327 Krista327 is offline
Registered User
 
Join Date: May 2005
Posts: 89
Talking

Great! Thanks for your help!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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