Eurekaonide
Active Member
- Joined
- Feb 1, 2010
- Messages
- 433
Hi
Looking for your help please.
I have some code that runs then it loads a UserForm1 which has some checkboxes on it and 2 buttons a cancel (which just ends it) and an OK which protects the sheet without a password and unloads the userform.
This all works fine
The issue I have is I need to go back to the main VBA code once OK is clicked to resume the rest of the code. I cannot seem to find a way to do this I tried a GoTo statement in the OK button code but because the Line was in the main Sub code it couldnt find it.
Can anyone suggest how I can get it to go from the 'OK' button and resume the main code please? Thanks
Looking for your help please.
I have some code that runs then it loads a UserForm1 which has some checkboxes on it and 2 buttons a cancel (which just ends it) and an OK which protects the sheet without a password and unloads the userform.
This all works fine
The issue I have is I need to go back to the main VBA code once OK is clicked to resume the rest of the code. I cannot seem to find a way to do this I tried a GoTo statement in the OK button code but because the Line was in the main Sub code it couldnt find it.
Can anyone suggest how I can get it to go from the 'OK' button and resume the main code please? Thanks