Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Globals Go "Poof!": Workarounds?
In Workbook_Open() I'm capturing a couple of global variable values:
the workbook's name, and it's full path. Naturally, when code is interrupted, the globals go "Poof!". This is expected.... but I'm unable to make Workbook_Open a public routine and call it as needed. Seems like I need an alternative to global variables. First thing that comes to mind is an invisible "System" or "Application" worksheet that gets populated by Workbook_Open. Then I write a couple of functions to grab the desired values from that invisible sheet. Does this sound like good practice? Alternatives? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... | Excel Programming |