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