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

I understand that if I call the workbook.names collection I am calling a
collection of all names that are present in the workbook.

What I want to be able to distinguish between which names are workbook level
ones and which are worksheet level ones!

PWS


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Workbook Names

Hi Paul,

Sub TestNames()
Dim Nme As Name

For Each Nme In ThisWorkbook.Names
If Nme.Name Like "*!*" Then
MsgBox Nme.Name & vbTab & "Sheet Level Name"
Else
MsgBox Nme.Name & vbTab & "Workbook Level name"
End If
Next Nme

End Sub

---
Regards,
Norman



"Paul Smith" wrote in message
...
I understand that if I call the workbook.names collection I am calling a
collection of all names that are present in the workbook.

What I want to be able to distinguish between which names are workbook
level ones and which are worksheet level ones!

PWS



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Workbook Names

Hi Paul,

To add, if you follow KeepITcool's suggestion (which I enthusiastically
endorse) to download Jan Karel Pieterse's Name Manager addin, you will
immediatly be able to distingish betwween global and local names - and
*much* more.

---
Regards,
Norman



"Paul Smith" wrote in message
...
I understand that if I call the workbook.names collection I am calling a
collection of all names that are present in the workbook.

What I want to be able to distinguish between which names are workbook
level ones and which are worksheet level ones!

PWS



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Workbook Names

You have to be careful, as workbook names are hidden from you if you have a
worksheet level name with the same name and that worksheet is active. See
http://www.xldynamic.com/source/xld.Names.html

--
HTH

Bob Phillips

"Paul Smith" wrote in message
...
I understand that if I call the workbook.names collection I am calling a
collection of all names that are present in the workbook.

What I want to be able to distinguish between which names are workbook

level
ones and which are worksheet level ones!

PWS




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
page names in a workbook Kate Excel Discussion (Misc queries) 2 July 5th 09 04:12 PM
workbook names list Steve Excel Discussion (Misc queries) 0 March 18th 09 01:46 PM
how do I find names in a workbook full of names aj Excel Discussion (Misc queries) 1 January 19th 06 09:01 PM
Names in Workbook Box FLKULCHAR Excel Discussion (Misc queries) 1 October 16th 05 10:58 PM
Delete names in workbook U. Kõrsmaa Excel Programming 6 February 8th 04 08:37 PM


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