How do I set up a vbNo If then statement for this:
VB Code:
If MsgBox("Again?", vbYesNo) = vbYes Then Call MessageBox_Trick
I want it to load the form if vbNo.
Printable View
How do I set up a vbNo If then statement for this:
VB Code:
If MsgBox("Again?", vbYesNo) = vbYes Then Call MessageBox_Trick
I want it to load the form if vbNo.
just put an Else in there.
VB Code:
If MsgBox("Again?", vbYesNo) = vbYes Then Call MessageBox_Trick Else 'do code for vbno End If
casey.
Oh sorry I forgot to put, when vbNo is click I need another message box. Do I just put that in a else statement then too?
like that you mean ?VB Code:
If MsgBox("Again?", vbYesNo) = vbYes Then Call MessageBox_Trick Else MsgBox "No pressed" End If
casey.
Yes, kinda like that. Only that was an example the one I need to do is super long code so yea :)
Thanks.
"Cuz I'm just flippin sweet like that yo"
Quote:
Originally Posted by nickTHEguitarist
u can do like
VB Code:
If MsgBox("Again?", vbYesNo) = vbNo Then Call MessageBox_Trick
Well I decided not to use the msgBox if then statement at all. I used radio option buttons :cool:
-NCM TO ITS FULLEST MOOF-