ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Name Box (https://www.excelbanter.com/excel-discussion-misc-queries/57806-name-box.html)

PraxisPete

Name Box
 
Hi Everybody

How do you create Hidden Names for ranges? I would like to name a range of
cells and not have the name appear in the drop down Name box, but be able to
refer to it in VBA code.

I am using Excel 2002

Many thanks

Norman Jones

Name Box
 
Hi PraxisPete,

Try something like:

'=============
Public Sub Tester03()
With ActiveWorkbook
.Names.Add "Test", _
RefersTo:=.Sheets("Sheet1").Range("A1"), _
Visible:=False
End With
End Sub
'<<=============

---
Regards,
Norman



"PraxisPete" wrote in message
...
Hi Everybody

How do you create Hidden Names for ranges? I would like to name a range
of
cells and not have the name appear in the drop down Name box, but be able
to
refer to it in VBA code.

I am using Excel 2002

Many thanks




Jim Rech

Name Box
 
You have to do it by code:

Names("ABC").Visible = False

or with a utility:

http://www.jkp-ads.com/OfficeMarketPlaceNM-EN.htm

--
Jim
"PraxisPete" wrote in message
...
| Hi Everybody
|
| How do you create Hidden Names for ranges? I would like to name a range
of
| cells and not have the name appear in the drop down Name box, but be able
to
| refer to it in VBA code.
|
| I am using Excel 2002
|
| Many thanks



PraxisPete

Name Box
 
Thank you for your replies, problem solved.

"Jim Rech" wrote:

You have to do it by code:

Names("ABC").Visible = False

or with a utility:

http://www.jkp-ads.com/OfficeMarketPlaceNM-EN.htm

--
Jim
"PraxisPete" wrote in message
...
| Hi Everybody
|
| How do you create Hidden Names for ranges? I would like to name a range
of
| cells and not have the name appear in the drop down Name box, but be able
to
| refer to it in VBA code.
|
| I am using Excel 2002
|
| Many thanks





All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com