Private Sub Workbook_Open()
Const listeF As String = ",Feuil2,Feuil3,"
Dim sh As Worksheet
For Each sh In Worksheets
If InStr(listeF, "," & sh.Name & ",") > 0 Then
sh.Protect UserInterfaceOnly:=True, Password:="mot_de_passe"
End If
Next sh
End Sub
Sub test()
' écriture sans déprotection
Sheets("Feuil2").[A1] = 5
End Sub