P
Potsy
I have added a macro (shown below) to protect / unprotect all which
works well. Unfortunately, one of the sheets does now not update as it
is a pivot table graph and when I unlock all it works again. The
sheets are called "Report" and "Analysis", is there any way to add an
extra line to exclude on Protect. these sheets have macro buttons
contained within them which also need to be clickable.
Thanks in advance
-----
Sub ProtectAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).Protect Password:="admin"
Next N
Application.ScreenUpdating = True
End Sub
Sub UnprotectAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).Unprotect Password:="admin"
Next N
Application.ScreenUpdating = True
End Sub
works well. Unfortunately, one of the sheets does now not update as it
is a pivot table graph and when I unlock all it works again. The
sheets are called "Report" and "Analysis", is there any way to add an
extra line to exclude on Protect. these sheets have macro buttons
contained within them which also need to be clickable.
Thanks in advance
-----
Sub ProtectAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).Protect Password:="admin"
Next N
Application.ScreenUpdating = True
End Sub
Sub UnprotectAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).Unprotect Password:="admin"
Next N
Application.ScreenUpdating = True
End Sub