Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Print all named ranges

Sub ListNames()
Dim i As Integer
Dim s() As String
i = ActiveWorkbook.Names.Count
ReDim s(i)
For i = 1 To i
s(i) = ActiveWorkbook.Names(i).Name & ActiveWorkbook.Names(i)
'For printing to the Immediate window
Debug.Print s(i) 'Prints something like this: MyRange=Sheet1!$A$1:$E$2
'Write names to the worksheet
Range("A" & i).FormulaR1C1 = ActiveWorkbook.Names(i).Name &
ActiveWorkbook.Names(i)
Next i
End Sub

"Dave Peterson" wrote:

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

It'll make working with names much, much easier.


Ctech wrote:

Hi, I have a spreadsheet with named ranges that I would like to export
to another worksheet.

Is there a way to do this, if not how can i print out all the named
ranges so I easily can write them in manually on the other wb.

--
Ctech

------------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=542050


--

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
Ranges, adding a column to a named print range then saving the file [email protected] Excel Programming 1 April 27th 06 01:42 AM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Macro (Print) - Calling Named Ranges KGlennC Excel Discussion (Misc queries) 1 March 19th 05 09:20 PM
named ranges - changing ranges with month selected gr8guy Excel Programming 2 May 28th 04 04:50 AM
Named Ranges and VBA Add-ins Tom Ogilvy Excel Programming 0 September 4th 03 09:58 PM


All times are GMT +1. The time now is 10:58 PM.

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"