VBA If Statements
It appears to me that you want to close UserForm 4 in either event.
Therefo
Private Sub cmbexit_Click()
MsgAdd = MsgBox("Would you like to place another order?", vbYesNo,
"Thank You for Your Order?")
UserForm4.Hide
If MsgAdd = vbYes Then UserForm1.Show
DoEvents
End Sub
Does this work for you?
|