G
GH
I have a userform that during initialization, deminsions a number of
variables (as Long). These variables store simple arithmatic
calculations. I need to refer to these variables as the user clicks
certain buttons on the form (i.e. code activated with the on click
event). If the variables are DIMed in the initialization of the form,
how should I call these values within the on click events? I really
don't want to declare them globally as they only are used relative to
this userform (it is actually a subform called from a main userform).
Do I have to pass the variables?
variables (as Long). These variables store simple arithmatic
calculations. I need to refer to these variables as the user clicks
certain buttons on the form (i.e. code activated with the on click
event). If the variables are DIMed in the initialization of the form,
how should I call these values within the on click events? I really
don't want to declare them globally as they only are used relative to
this userform (it is actually a subform called from a main userform).
Do I have to pass the variables?