Nelviticus
Programmer
How do I declare a global variable in Excel VBA that's accessible by all modules and all procedures? Also, which module would I place it in?
I have a spreadsheet that launches a userform from its Workbook_Open event. The userform has several procedures in its own code module and also makes calls to procedures in other modules. I'm using Office XP.
I know how to declare a variable that's sort of global, i.e. global within the module it's declared in, but I need one that's truly global across all modules.
Thanks
I have a spreadsheet that launches a userform from its Workbook_Open event. The userform has several procedures in its own code module and also makes calls to procedures in other modules. I'm using Office XP.
I know how to declare a variable that's sort of global, i.e. global within the module it's declared in, but I need one that's truly global across all modules.
Thanks