ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Defined Name (https://www.excelbanter.com/excel-programming/311816-defined-name.html)

Sheldon

Defined Name
 
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



Rob Bovey

Defined Name
 
"Sheldon" wrote in message
...
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 *





All times are GMT +1. The time now is 07:32 PM.

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