ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   global variables (https://www.excelbanter.com/excel-programming/345769-global-variables.html)

[email protected]

global variables
 
How can I set the default value of a global variable?


Tom Ogilvy

global variables
 
You can initialize a constant:

Const Myvar As Long = 6

but for a variable, you would need to run a procedure to initialize it.

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
How can I set the default value of a global variable?




[email protected]

global variables
 
yar! oh well thanks!


Jim Thomlinson[_4_]

global variables
 
Intitilize the variable in the Workbook open procedure... Then it will be
intialized from the moment the sheet is opened...
--
HTH...

Jim Thomlinson


" wrote:

yar! oh well thanks!




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

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