Export (0) Print
Expand All

MsgBoxResult Enumeration

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)

Community Additions

ADD
Show:
© 2014 Microsoft