Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default 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 *



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time error '50290': Application-defined or object-defined erro Macro button Excel Discussion (Misc queries) 1 March 12th 09 10:59 AM
"User-defined type not defined" message in Excel RW1946 Excel Discussion (Misc queries) 0 August 31st 05 12:14 PM
Application defined or Object defined error FJ Shepley & JM Pfohl Excel Programming 2 September 8th 04 03:17 AM
Word.Document - user defined type not defined jowatkins[_7_] Excel Programming 0 January 20th 04 08:46 AM
Application-defined or object-defined error Sharon[_5_] Excel Programming 2 October 24th 03 03:49 PM


All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"