Hi, I would like to block 3 sheets specific , but the macro doesn't work ; surely there is a mistake , but I can't find it . Can anyone help me to modify this macro ? Thanks .
Code:
Sub block()
Dim wsh As Worksheet
Sheets(Array("foglio1", "foglio2", "foglio3")).Select
For Each wsh In ActiveWindow.SelectedSheets
wsh.Protect Password:="pippo", _
UserInterFaceOnly:=True
EnableSelection = xlUnlockedCells
Next wsh
End Sub