Provides a constant for the No button for the MsgBox method.
Object.vbNo
| Object |
VBS
The constant belongs to the VBS functionality. You do not need to specify this object. |
| Object.vbNo | Variant with read access vbNo has the value 7. |
The following example displays the pressed button:
Select Case MsgBox("Hello World", vbYesNoCancel + vbMsgBoxRtlReading ) Case vbOK Call MsgBox("You clicked ""OK""") Case vbCancel Call MsgBox("You clicked ""Cancel""") Case vbAbort Call MsgBox("You clicked ""Abort""") Case vbRetry Call MsgBox("You clicked ""Retry""") Case vbIgnore Call MsgBox("You clicked ""Ignore""") Case vbYes Call MsgBox("You clicked ""Yes""") Case vbNo Call MsgBox("You clicked ""No""") End Select