Hello All!
I do not succeed to pass a variable (Control Button) from a UserForm to a Procedure (in a regular Module).
I am declaring the variable as Public and Static, but I get a message that VBA does not support this kind of automation.
What's the best way to do that? (I currently save the variable in a cell on a worksheet before unloading the UserForm, then read it from that location when I am back in the Procedure. I figure there must be an easier way
Thanks!
I do not succeed to pass a variable (Control Button) from a UserForm to a Procedure (in a regular Module).
I am declaring the variable as Public and Static, but I get a message that VBA does not support this kind of automation.
What's the best way to do that? (I currently save the variable in a cell on a worksheet before unloading the UserForm, then read it from that location when I am back in the Procedure. I figure there must be an easier way
Thanks!