(VBA) MsgBox OK and CANCEL
1 If MsgBox("Test OK/Cancel Click", vbOKCancel, "TITLE") = vbOK Then
2 MsgBox "OK CLICKED", vbInformation
3 Else
4 MsgBox "CANCEL CLICKED", vbInformation
5 End If
2 MsgBox "OK CLICKED", vbInformation
3 Else
4 MsgBox "CANCEL CLICKED", vbInformation
5 End If