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

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

Many Thanks

Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 67
Default Named Ranges

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



--
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?


"paul johnson" wrote:

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

Many Thanks

Paul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Named Ranges

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

--


Gary


"paul johnson" wrote in message
...
I have a spreadsheet using 100 plus named ranges.
Is there a quick way to document all these ranges?

Many Thanks

Paul



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Named Ranges

go to a blank worksheet
Insert=Name=Paste. . .

select the paste list button.

--
Regards,
Tom Ogilvy

"paul johnson" wrote in message
...
I have a spreadsheet using 100 plus named ranges.
Is there a quick way to document all these ranges?

Many Thanks

Paul




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Named Ranges

Many Thanks again Tom


Regards Paul



"Tom Ogilvy" wrote in message
...
go to a blank worksheet
Insert=Name=Paste. . .

select the paste list button.

--
Regards,
Tom Ogilvy

"paul johnson" wrote in message
...
I have a spreadsheet using 100 plus named ranges.
Is there a quick way to document all these ranges?

Many Thanks

Paul








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Named Ranges

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


--
Don Guillett
SalesAid Software

"paul johnson" wrote in message
...
I have a spreadsheet using 100 plus named ranges.
Is there a quick way to document all these ranges?

Many Thanks

Paul



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Named Ranges


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

paul johnson wrote:

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

Many Thanks

Paul


--

Dave Peterson
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
Named Ranges William Benson[_2_] Excel Programming 5 July 14th 05 07:01 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
named ranges - changing ranges with month selected gr8guy Excel Programming 2 May 28th 04 04:50 AM
Named ranges Bob Phillips[_6_] Excel Programming 0 April 20th 04 04:08 PM
Named ranges Toby Erkson Excel Programming 0 April 20th 04 04:02 PM


All times are GMT +1. The time now is 12:28 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"