Option Explicit
Private Sub ToggleButton1_Click()
Dim i&
For i = 1 To Sheets.Count
With Sheets(i)
If ToggleButton1 = False Then
.Protect 'Password:="JPP1960", DrawingObjects:=True, Contents:=True, Scenarios:=True
.EnableSelection = xlUnlockedCells
ToggleButton1.Caption = IIf(ToggleButton1 = False, "Libérer", "Protéger")
ToggleButton1.BackColor = IIf(ToggleButton1 = False, &H80FF&, &H80FF80)
Else
.Unprotect
ToggleButton1.Caption = IIf(ToggleButton1 = False, "Libérer", "Protéger")
ToggleButton1.BackColor = IIf(ToggleButton1 = False, &H80FF&, &H80FF80)
End If
End With
Next i
End Sub