Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Names of named ranges in active sheet only

Dim nm as Name, rng as Range
for each nm in thisworkbook.Names
set rng = nothing
on Error Resume Next
set rng = nm.ReferstoRange
on Error Goto 0
if not rng is nothing then
if rng.parent.name = Activesheet.name then
' this name is on the same sheet
end if
end if
Next

--
Regards,
Tom Ogilvy



"XP" wrote in message
...
In Excel 2003, is it possible to return only the Names of named ranges in
the
active sheet vs. the entire workbook?

Could someone please post example code on how to do this?

Must the range be named a certain way for the code to detect this info?

Thanks.



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
Copy worksheet with named ranges to new workbook and keep names Sandy Excel Worksheet Functions 0 July 11th 08 04:37 PM
Names of named ranges in active sheet only Norman Jones Excel Programming 0 December 7th 06 01:45 PM
union of named ranges based only on the names of those ranges sloth Excel Programming 3 October 2nd 06 03:18 AM
Copying named ranges from one sheet to another Mark Stephens Excel Programming 3 August 4th 05 02:54 PM
How do I delete all named ranges in a sheet at one time? L.Wall Excel Worksheet Functions 2 July 13th 05 03:29 PM


All times are GMT +1. The time now is 02:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"