Exiting Sub when Selecting Cancel on vbOKCancel
Dim Resp as long
resp = msgbox(Prompt:="do you want...", buttons:=vbokcancel)
if resp = vbcancel then
exit sub
end if
'keep going
Rob wrote:
Hi Again,
How would I make it to where if I select cancel from this msxbox...
MsgBox "Do You Want to Run the Activation/De-Activation Code Checker?",
vbOKCancel
...it exits the sub and does not perform anything else within the sub?
Right now if I select cancel it still finishes the sub. Any help would be
great.
Thanks Much,
Rob
--
Dave Peterson
|