Displays warning before cmd_button execute

bremensleash

Registered User.
Local time
Tomorrow, 03:09
Joined
Jul 15, 2008
Messages
24
Hello

is there any one here have the idea how to display

a msg box before the command button execute.

The msg box output
Are you sure you want to delete this one
yes / no

No luck finding the topic in google
:confused::confused::confused::confused:
 
If msgbox("Want to delete", vbyesno, etc...) = vbyes then
' execute more code
else
' do something else
End if
 
Code:
    If MsgBox("Yes or no?", vbYesNo, "Some title") = vbYes Then
        MsgBox "Clicked yes!"
    Else
        MsgBox "Clicked no!"
    End If
or just
Code:
    If MsgBox("Yes or no?", vbYesNo, "Some title") = vbYes Then
        MsgBox "Clicked yes!"
    End If
since you don't really have to handle the no I think

edit: namliam beat me to it xD
 

Users who are viewing this thread

Back
Top Bottom