gimli
04-12-2010, 05:20 AM
Hi,
I want to restrict people from saving a workbook using the code below. Problem is when I try to save changes after adding the code it wont let me either ...ha
How can I add code to restrict saving?
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
MsgBox "This work book cannot be saved"
End Sub
I want to restrict people from saving a workbook using the code below. Problem is when I try to save changes after adding the code it wont let me either ...ha
How can I add code to restrict saving?
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
MsgBox "This work book cannot be saved"
End Sub