Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I create a public array defined on top of the macro to be global in 1 of the
worksheet. The array contains a range of a worksheet. I have a procedure called by a checkbox_click routine to see if a readflag is true to skip loading the range into the global array so that it doesn't keep reading every single time. My problem is that once the procedure is ran by the click routine, the global array content disappears. What can I do to keep the value intact once the array is loaded? Another thought is to verify if the global array has any values in it but since I define the array as variant, it doesn't exist when it's not loaded. Is there a function in VBA that allows me to check if an array is defined? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Scope of variable | Excel Programming | |||
UNDERSTANDING VARIABLE SCOPE | Excel Programming | |||
variable scope | Excel Programming | |||
Variable Scope | Excel Programming | |||
Variable scope | Excel Programming |