Option Explicit
Sub protection()
Dim exclure As Variant
Dim Feuil As Worksheet
Application.ScreenUpdating = False
exclure = "Feuil1,Feuil2,Feuil3,"
For Each Feuil In ThisWorkbook.Worksheets
If InStr(exclure, Feuil.Name & ",") = 0 Then
Feuil.Protect Password:="Lazz"
End If
Next Feuil
End Sub
Sub déprotection()
Dim exclure As Variant
Dim Feuil As Worksheet
Application.ScreenUpdating = False
exclure = "Feuil1,Feuil2,Feuil3,"
For Each Feuil In ThisWorkbook.Worksheets
If InStr(exclure, Feuil.Name & ",") = 0 Then
Feuil.Unprotect Password:="Lazz"
End If
Next Feuil
End Sub