Sub additemmenucell()
Dim bout As CommandBarControl
With CommandBars("Cell")
.Reset
Set bout = .Controls.Add(msoControlButton, , , 1, True)
With bout
.Caption = "copier la colonne"
.FaceId = 5378
.OnAction = ThisWorkbook.Name & "!copyspecial"
End With
Set bout = .Controls.Add(msoControlButton, , , 2, True)
With bout
.Caption = "coller la copie"
.FaceId = 5378
.OnAction = ThisWorkbook.Name & "!collespecial"
.Enabled = False
End With
End With
End Sub
Sub copyspecial()
MsgBox "on copie"
End Sub
Sub collespecial()
MsgBox "on colle"
End Sub