I am having trouble getting the last part of this code to work. If no is selected I would like to bring up a message box before exiting the sub.
How would I accomplish this?
Thanks
John
How would I accomplish this?
Thanks
John
Code:
varanswer = MsgBox("do you want to continue", vbYesNo, "CHECK STATUS")
If varanswer = vbNo Then msgbox "please try again later" then exit sub
remainder of code