Hello
I am in need of your help, I am trying to add a message box popup in VBA that when a user selects file>save or ctrl+s, it prompts them with a message box that states "Do you really want to overwrite this file?" Yes button to continue to save, No button to cancel and close the message box.
I tried using the below code but pressing no still saves it.
I am not very clued up on VBA so I might be missing something simple, but cant figure it out.
Best Regards
Dave
I am in need of your help, I am trying to add a message box popup in VBA that when a user selects file>save or ctrl+s, it prompts them with a message box that states "Do you really want to overwrite this file?" Yes button to continue to save, No button to cancel and close the message box.
I tried using the below code but pressing no still saves it.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "Do you really want to overwrite this file?", vbYesNo
End Sub
I am not very clued up on VBA so I might be missing something simple, but cant figure it out.
Best Regards
Dave