Hi all,
I have an "Application Caller" Button that declares and sets the variables that I need to use in a UserForm.
The UserForm Variables are based on a range value, set when a particular Application.Caller button is pressed (Actually a shape on the Worksheet).
The Sub sets the UserForm button captions perfectly but when the variables are called within the command button routines I get a " Method 'Range' of object _'Global' failed " error
After the research I have done I am still no further advanced in figuring out the appropriate placement of the Public decalrations in the code.
Code for the UserForm "Application.Caller" Button (Standard Module) :
When the UserForm opens, The captions are pre-filled nicely, but when the command button on the form is clicked, the procedure gets the above-mentioned error at the line highlighted in red, and stops:
Something simple I've missed, for sure, but it baffles me.
Regards,
Martin
Bookmarks