I have created a macro to delete entries etc... upon execution. How would I write code to have a "Warning" box pop up to confirm this request and then execute after a Yes / No is clicked?
Thanks for any help
I have created a macro to delete entries etc... upon execution. How would I write code to have a "Warning" box pop up to confirm this request and then execute after a Yes / No is clicked?
Thanks for any help
Is this what you are looking for?
Sub doubleCheck() myChoice = MsgBox("Click OK to continue" & vbLf _ & "Click CANCEL to stop now", vbOKCancel, "Are you sure?") If myChoice = vbCancel Then Exit Sub 'your other code goes here End Sub
Worked perfect.......Thanks you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks