I am trying to lock a range within specific worksheets in a workbook. The code I use only locks the first worksheet's cells and doesn't loop onto the next one locking the range.
Sub lockpivots()
Dim sh As Worksheet
For Each sh In Sheets
Select Case sh.Name
Case Is = "2) Review Charts-Management", "3) Review Charts-Functional"
Selection.Locked = False
Selection.FormulaHidden = False
range("b2:C9").Select
ActiveSheet.Protect Password:="IDR"
End Select
Next sh
End Sub