I did tweak it a bit, but didn't have problems where you did.
Sub ProtectAllSheets()
Dim WS As Worksheet
Application.ScreenUpdating = False
For Each WS In ThisWorkbook.Worksheets
With WS
.Protect Password:="nosecret"
.EnableSelection = xlUnlockedCells
End With
Next WS
Application.ScreenUpdating = True
End Sub

Signature
HTH,
Barb Reinhardt
> Excel 2002 SP3
> Win XP Pro
[quoted text clipped - 21 lines]
>
> Be easy on me as I am a newbie at XL macros/VBA....
stef - 10 Oct 2007 02:01 GMT
Bard, same as the one Jim posted and I thank both very much for it--it
does work and makes my life easier.
> I did tweak it a bit, but didn't have problems where you did.
>
[quoted text clipped - 10 lines]
> Application.ScreenUpdating = True
> End Sub