Hi Wally,
1. Copy this...
Public Sub ProtectSelectedSheets()
Dim Sht As Worksheet
Dim ncProtect As New Collection
For Each Sht In ActiveWindow.SelectedSheets
ncProtect.Add Item:=Sht
Next Sht
Worksheets(1).Select
For Each Sht In ncProtect
Sht.Protect
Next Sht
End Sub
2.On your workbook, open the VBA Editor by pressing Alt + F11
3. In the VBA Editor go Insert > Module then paste the code into the
blank module that appears.
4.Come back here and copy this code...
Public Sub UnprotectSelectedSheets()
Dim Sht As Worksheet
Dim ncUnprotect As New Collection
For Each Sht In ActiveWindow.SelectedSheets
ncUnprotect.Add Item:=Sht
Next Sht
Worksheets(1).Select
For Each Sht In ncUnprotect
Sht.Unprotect
Next Sht
End Sub
5. Go back to the VBA editor in your workbook, which should still be
open at the new module, then paste in the code into the same module.
6. Go back to your worksheet by going Alt + F11
7. Save
8. To run either macro Shift-click or Ctrl-click sheet tabs to select
the sheets to protect or unprotect, then go
Tools>Macro>Macros...>select the appropriate macro then click the Run
button.
Let me know how you go.
Ken Johnson