Sub ertert()
If MsgBox("Do you really want to delete the data", 36) = vbYes Then
Range("A1:B5").ClearContents
End If
End Sub
I have a clear button linked to a macro and I do want to keep the clear button however would like to have a message to verify that the user didn't press it in error. I was provided with the above however it does not seem to work. Would anyone have a suggestion?
Bookmarks