VBScript constant: vbDefaultButton3
- Updated2024-09-12
- 1 minute(s) read
Constants > MsgBox Constants > VBScript constant: vbDefaultButton3
VBScript constant: vbDefaultButton3
Provides a constant for the third button for the MsgBox method.
Object.vbDefaultButton3
| Object | VBS The constant belongs to the VBS functionality. You do not need to specify this object. |
| Object.vbDefaultButton3 | Variant with read access vbDefaultButton3 has the value 512. |
The following example displays the buttons Yes, No, Cancel, and Help in a message in which the third button is the default button:
Call MsgBox("Hello World", vbYesNoCancel + vbDefaultButton3 + vbMsgBoxHelpButton )