Here's what I'm using to stop anyone from saving a file. What I would like to do is to only allow a file to be saved through a macro assigned to a button on a sheet.
Thanks,
[Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "OH NO YOU DON'T!!!"
Cancel = True
End Sub]
Thanks,
[Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
MsgBox "OH NO YOU DON'T!!!"
Cancel = True
End Sub]