Creating Hidden Range Names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a spreadsheet with some workbook wide range names that do not appear in the Insert|Name|Define dialogue box
I assume this is because these are 'hidden' range names, which I have not come across before
Can anyone advise
- how I can get a list of hidden range names in a workbook
- how are hidden range names created
Many thank
KGB
 
KGB,

The following routine will show(1st) or delete(2nd) all the hidden names in
your (active) file :
I don't know what more will create hidden names, but I do know that
pivottables is one of the causes of hidden names.


Sub ListHiddenNames()
Dim n As Name
Dim C As Integer
C = 0
For Each n In ActiveWorkbook.Names
If Not n.Visible Then
C = C + 1
Workbooks("ListHiddenNames.xls").Worksheets(1).Cells(C, 1).Value =
n.Name
Workbooks("ListHiddenNames.xls").Worksheets(1).Cells(C, 2).Value = n
End If
Next
End Sub


Sub DeleteHiddenNames()
Dim n As Name
For Each n In ActiveWorkbook.Names
If Not n.Visible Then
n.Delete
End If
Next
End Sub


--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *

KGB said:
I have a spreadsheet with some workbook wide range names that do not
appear in the Insert|Name|Define dialogue box.
 
For Each nme In Activeworkbook.Names
Debug.Print nme.Name
Next nme

activeworkbook.names("VAT").visible=false

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

KGB said:
I have a spreadsheet with some workbook wide range names that do not
appear in the Insert|Name|Define dialogue box.
 
To deal with hidden names and to work with names in general you can make
your like a lot easier by grabbing this utility by Jan Karel Pieterse and
his gang:

http://www.bmsltd.ie/DLCount/DLCount.asp?file=NameManager.zip

--
Jim Rech
Excel MVP
|I have a spreadsheet with some workbook wide range names that do not appear
in the Insert|Name|Define dialogue box.
| I assume this is because these are 'hidden' range names, which I have not
come across before.
| Can anyone advise:
| - how I can get a list of hidden range names in a workbook.
| - how are hidden range names created.
| Many thanks
| KGB
 
Not directly AFAIK, but you could get hold of Jan Karel Pieterse and Charles
Williams' NameManager utility, that will help you do it in a nice utility.
You can get it at http://www.bmsltd.ie/MVP/Default.htm under Jan Karel's
section.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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