How to work with Yes, No or Cancel Message Box
To work with Yes, No or Cancel Message Box
Step 1:
Add the CommandButton in the Form:

Step 2:
Type in VB programming codes to the Command button. In this example, a Yes/No/Cancel box will be displayed after clicking on the Command button.
Private Sub Command1_Click()
MsgBox "Please Click Me!!!", vbYesNoCancel
End Sub
Step 3:
The Yes/No/Cancel box is displayed after clicking on the Command button:

No comments:
Post a Comment