Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Named Ranges

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paul johnson - 21 Feb 2006 15:21 GMT
I have a spreadsheet using 100 plus named ranges.
Is there a quick way to document all these ranges?

Many Thanks

Paul
Gary Keramidas - 21 Feb 2006 15:37 GMT
maybe something like this. this will list them in the immediate window

Sub name_ranges3() ' dumps all named ranges
Dim nm As Name
For Each nm In ThisWorkbook.Names
    Debug.Print nm.Name
    Debug.Print Range(nm).Name
Next nm
End Sub

Signature

Gary

>I have a spreadsheet using 100 plus named ranges.
> Is there a quick way to document all these ranges?
>
> Many Thanks
>
> Paul
ben - 21 Feb 2006 15:38 GMT
do you mean just make a list?

put this code in the workbook with your names

Sub getnames()
Application.EnableEvents = False
Application.ScreenUpdating = False
Dim wkb As Workbook
Dim cou As Integer
Set wkb = Workbooks.Add
wkb.Sheets(1).Cells(1, 1).Activate
For cou = 1 To ThisWorkbook.Names.Count
ActiveCell = ThisWorkbook.Names(cou).Name
ActiveCell.Offset(1, 0).Activate
Next
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub

Signature

When you lose your mind, you free your life.
Ever Notice how we use '' for comments in our posts even if they aren''t
expected to go into the code?

> I have a spreadsheet using 100 plus named ranges.
> Is there a quick way to document all these ranges?
>
> Many Thanks
>
> Paul
Tom Ogilvy - 21 Feb 2006 15:55 GMT
go to a blank worksheet
Insert=>Name=>Paste. . .

select the paste list button.

Signature

Regards,
Tom Ogilvy

> I have a spreadsheet using 100 plus named ranges.
> Is there a quick way to document all these ranges?
>
> Many Thanks
>
> Paul
paul johnson - 21 Feb 2006 16:47 GMT
Many Thanks again Tom

Regards Paul

> go to a blank worksheet
> Insert=>Name=>Paste. . .
[quoted text clipped - 7 lines]
>>
>> Paul
Don Guillett - 21 Feb 2006 15:58 GMT
Does this help?

Sub listnamesandrefersto()
For Each n In ThisWorkbook.Names
lr = Cells(Rows.Count, "a").End(xlUp).Row + 1
Cells(lr, 1) = n.Name
Cells(lr, 2) = Right(n.RefersTo, Len(n.RefersTo) - 1)
Next
End Sub

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

>I have a spreadsheet using 100 plus named ranges.
> Is there a quick way to document all these ranges?
>
> Many Thanks
>
> Paul
Dave Peterson - 21 Feb 2006 17:01 GMT
You may want to get Jan Karel Pieterse's (with Charles Williams and Matthew
Henson) Name Manager:

You can find it at:
NameManager.Zip from http://www.oaltd.co.uk/mvp

> I have a spreadsheet using 100 plus named ranges.
> Is there a quick way to document all these ranges?
>
> Many Thanks
>
> Paul

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.