If MsgBox ("Save this PO", vbYesNo, "Purchase Order" = vbNo Then
' stick some code here
End If
If you need to check the result later on, you can assign the result of the MsgBox function to an integer variable and refer to it later on. There are many variables in addition to vbNo, representing different buttons, each of which has an integer value.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.