Workbook Names

  • Thread starter Thread starter Paul Smith
  • Start date Start date
P

Paul Smith

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top