Barre d'outils Ajout copier coller

  • Initiateur de la discussion Tial57
  • Date de début
T

Tial57

Guest
Bonjour à tous
J'ai la macro suivante pour la création d'une barre d'outils
Sub CreateBO()
'Création de la barre d'outils "Forme Libre"
With Application
.ScreenUpdating = False

.CommandBars.Add(Name:="Forme libre").Visible = True
.CommandBars("Forme libre").Controls.Add Type:=msoControlButton _
, ID:=206, Before:=1
.CommandBars("Forme libre").Controls.Add Type:=msoControlButton, ID:= _
200, Before:=1
End With
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 1, 1, 1, 1). _
Select
With Selection.ShapeRange
.Fill.Visible = msoFalse
.Line.Weight = 0.5
.Line.ForeColor.SchemeColor = 48
.SetShapesDefaultProperties
End With
Selection.Delete
End Sub


Comment puis je rajouter les outils couper et coller.
Par avance merci
Tial
 
B

Ber Nar

Guest
Comme çà peut-être :

Application.CommandBars("Forme libre").Controls.Add Type:=msoControlButton , ID:=19, Before:=1
Application.CommandBars("Forme libre").Controls.Add Type:=msoControlButton , ID:=22, Before:=2


Ber Nar.
 

Discussions similaires

Statistiques des forums

Discussions
312 294
Messages
2 086 906
Membres
103 404
dernier inscrit
sultan87