...175...


In der Symbolleiste "Standard" eine Schaltfläche hinzufügen
Sub Mein_Button1()
   Dim cmbStandard As CommandBar
   Set cmbStandard = Application.ActiveExplorer.CommandBars("Standard")
      With cmbStandard.Controls.Add
         .BeginGroup = True
         .Caption = "Mein Button"
         .Style = msoButtonCaption
         .OnAction = "Test"
      End With
End Sub

Sub Test()
   MsgBox "Ich bin der CommandButton-Test"
End Sub

by Monika Weber