Defined Name

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

Guest

How can read my Global Const statements, use the name value and create a
defined name as in Insert|Name|Define

Global Const XXX = 21

In the name box I want "XXX", in the Refers to box I want =21.

All this VBA code.

Thanks
 
Sheldon said:
How can read my Global Const statements, use the name value and create a
defined name as in Insert|Name|Define

Global Const XXX = 21

In the name box I want "XXX", in the Refers to box I want =21.

Hi Sheldon,

ThisWorkbook.Names.Add "XXX", "=21"

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
 

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