Sub InsererDesBoutons()
Dim objBut As Object
Dim i As Integer
LigDeb = 2
With Range("B" & LigDeb)
PosG = .Left
PosH = .Top
End With
Hauteur = 50
Longueur = 150
ActiveSheet.Unprotect Password:="sandman"
ActiveWorkbook.Unprotect Password:="sandman"
With ActiveSheet.Buttons.Add(PosG, PosH, Longueur, Hauteur)
.OnAction = "ArrêtProtec" 'Nom d'un sub
.Caption = "Déprotéger Feuil"
End With
End Sub