In order to have a variable visible to all controls in a particular form, does it need to be global? Is there a way to declare a variable to have the scope of all procedures triggered by controls in a from, or would you need to put all the code for the subroutines in a module, with a module scoped varaible?
assuming userform1 with 10 controls, all manipulating the same array.
When the form in initiated, can you declare the array there, in such a way that all the controls would have access to the array, but the array wouldn't have scope to anything outside the form?
assuming userform1 with 10 controls, all manipulating the same array.
When the form in initiated, can you declare the array there, in such a way that all the controls would have access to the array, but the array wouldn't have scope to anything outside the form?