Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MD MD is offline
external usenet poster
 
Posts: 10
Default Declare at application level

Good day, I wanted to know if it is possible to declare a variable at the
application level. In other words, as a workbook opens it sets the value of
a variable so that all other workbooks can use that value without have to
declare it in each workbook.

ie;

worbook1 opens and declares variable X as "\\mypath\"

as worbook2 opens, it has code that will have the X variable in it and
should know that X is "mypath" without declaring it in workbook2


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Declare at application level

I think you might want to write the variable to some external location like
the registry or a text file. If the former case using GetSetting and
SaveSetting is pretty convenient way to access it.

--
Jim
"MD" wrote in message
...
| Good day, I wanted to know if it is possible to declare a variable at the
| application level. In other words, as a workbook opens it sets the value
of
| a variable so that all other workbooks can use that value without have to
| declare it in each workbook.
|
| ie;
|
| worbook1 opens and declares variable X as "\\mypath\"
|
| as worbook2 opens, it has code that will have the X variable in it and
| should know that X is "mypath" without declaring it in workbook2
|
|


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
Application level event help John Bundy Excel Discussion (Misc queries) 2 January 15th 08 10:30 PM
Excel Application Level Global Variable wesbird Excel Programming 1 June 21st 05 12:52 AM
Application Level Events Question nickg420[_4_] Excel Programming 3 July 16th 04 05:02 PM
Application level events no longer execute R Avery Excel Programming 1 June 4th 04 01:21 AM
Monitoring application-level event problem R Avery Excel Programming 2 January 6th 04 01:58 PM


All times are GMT +1. The time now is 06:50 AM.

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"