For each ows in ThisWorkbook.Worksheets
' Here you look at ows.Name and apply the correct protection.
Next ows
Sub ProtectWorkbook()
Dim wsheet As Worksheet
For Each wsheet In ActiveWorkbook.Worksheets
wsheet.Protect , DrawingObjects:=False, AutoFilter:=False
Next wsheet
Range("F3").Select
ActiveWorkbook.Save
End Sub
Sub UnProtectWorkbook()
Dim wsheet As Worksheet
For Each wsheet In ActiveWorkbook.Worksheets
wsheet.UnProtect , DrawingObjects:=True, AutoFilter:=True
Next wsheet
End Sub
wsheet.Protect "", False
Sub ProtectWorkbook()
Dim wsheet As Worksheet
For Each wsheet In ActiveWorkbook.Worksheets
wsheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
True, AllowFiltering:=True
Next wsheet
Worksheets("Menu").Activate
Range("F3").Select
ActiveWorkbook.Save
End Sub