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