#1   Report Post  
Posted to microsoft.public.excel.misc
PraxisPete
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Norman Jones
 
Posts: n/a
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim Rech
 
Posts: n/a
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.misc
PraxisPete
 
Posts: n/a
Default 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



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



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