On the close of my workbook, I want to enable workbook level protection in order to keep users from changing the names of my worksheet tabs if they open it with macros disabled.
I tried:
but excel doesn't seem to recognize this command on this event. Does anyone know how to do this?
Q: Why is my computer doing that?
A: Random Perversity of Inanimate
Objects
I tried:
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
ActiveWorkbook.Protect ("MyPassword"), Structure:=True, Windows:=False
End Sub
but excel doesn't seem to recognize this command on this event. Does anyone know how to do this?
Q: Why is my computer doing that?
A: Random Perversity of Inanimate
Objects