Bonsoir X Cellus,
Voici un exemple de code, pourrais tu m'expliquer comment pourrais je l'adapter à tel que tu m'as suggéré:
Sub Protection()
MotPass = "bbil"
ActiveWorkbook.Protect Password:=(MotPass), Structure:=True, Windows:=False
ActiveSheet.Protect Password:=(MotPass), Contents:=True, _
DrawingObjects:=True, Scenarios:=True
End Sub
Sub Enleveprotection()
With ActiveWorkbook
.Protect vbNullString, True, True
.Unprotect vbNullString
End With
With ActiveSheet
.Protect vbNullString, True, True, True, True
.Unprotect vbNullString
End With
End Sub
ActiveSheet.Protect "bbil"
ActiveSheet.Unprotect "bbil"
Cordialement.