Const pass As String = "mot de passe"
Private Sub activer_protection()
Windows("sem07_08_v12b.xls").Activate
Sheets("accueil").Protect Password:="pass"
For i = 1 To 52
If i < 10 Then i = "0" & i
Sheets("sem" & i).Protect Password:="pass"
Next i
End Sub
Private Sub desactiver_protection()
Windows("sem07_08_v12b.xls").Activate
Sheets("accueil").Unprotect Password:="pass"
For i = 1 To 52
If i < 10 Then i = "0" & i
Sheets("sem" & i).Unprotect Password:="pass"
Next i
End Sub