Bonjour a toutes et a tous
je cherche en vain a adapter cette macro, afin d'y ajouter d'autres boutons
mais j'y arrive pas
Voici cette macro, pris sur ce site
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 Sub AjouterCmdBar() Dim cmd As CommandBar Dim ctrl As CommandBarButton Set cmd = Application.CommandBars.Add("MaBarre") With cmd .Visible = True With .Controls Set ctrl = .Add(msoControlButton) With ctrl .Style = msoButtonCaption .Caption = "Usf1" .OnAction = "Usf1" End With End With End With End Submerci a l'avance pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 Sub Usf1() UserForm1.Show End Sub
Cordialement
Partager