Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates which button was pressed on a message box, returned by the MsgBox function.
When you call the MsgBox function, you can use the MsgBoxResult enumeration in your code in place of the actual values.
The MsgBox function returns a MsgBoxResult enumeration value.
Member |
Constant |
Description |
---|---|---|
OK |
vbOK |
OK button was pressed. |
Cancel |
vbCancel |
Cancel button was pressed. |
Abort |
vbAbort |
Abort button was pressed. |
Retry |
vbRetry |
Retry button was pressed. |
Ignore |
vbIgnore |
Ignore button was pressed. |
Yes |
vbYes |
Yes button was pressed. |
No |
vbNo |
No button was pressed. |
Namespace: Microsoft.VisualBasic
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)
How to: Refer to an Enumeration Member
Please sign in to use this experience.
Sign in