Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook where I declare some public variables such as:
Public wsControl as Worksheet and then I have an initialization method that runs on Workbook_Open that sets wsControl = Sheets("Control") This works all fine and the reference sticks...until a sheet is deleted. Then all my sheet references like the one above get set to Nothing. Is there a way to avoid this or a way to determine when the state has changed in order to re-initialize the public variables (without having to check everytime I call a method)? -- ********************* J Streger MS Office Master 2000 ed. MS Project White Belt 2003 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
public variables | Excel Discussion (Misc queries) | |||
Public variables | Excel Discussion (Misc queries) | |||
Public variables | Excel Programming | |||
Public Variables | Excel Programming | |||
Public Variables | Excel Programming |