andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I haven't really used much in the way of public variables before, so I seem to be doing something wrong. In my userform, I have declared:
at the very top.
Now I have this:
as one of the commandbutton click functions.
In my module (where the userform originated) I have this:
Basically, I wanted to declare some sort of value when a button was clicked and then have my code check the value to exit the sub instead of continuing to run.
any help would be greatly appreciated.
I haven't really used much in the way of public variables before, so I seem to be doing something wrong. In my userform, I have declared:
Code:
Public closeResend As String
Now I have this:
Code:
closeResend = "Yes"
In my module (where the userform originated) I have this:
Code:
If closeResend = "Yes" Then
Exit Sub
End If
Basically, I wanted to declare some sort of value when a button was clicked and then have my code check the value to exit the sub instead of continuing to run.
any help would be greatly appreciated.
Last edited: