ich habe in Excel eine benutzerdefinierte Symbolleiste
erzeugen müssen und möchte diese an einer bestimmten Position
(angedockt) haben.
Nach rechts bekomme ich die problemlos.
Allerdings bekomme ich diese Symbolleiste nicht NEBEN die
Symbolleiste „Standard“, sondern nur ZWISCHEN „Standard“ und
„Format“.
Mein Wunsch ist es also, die eigene Symbolleiste eine „Zeile“
weiter nach oben zu bekommen.
Geht das überhaupt oder ist das gar nicht vorgesehen?
Hi Thomas,
hilft das weiter?:
Sub CommandBarPositionieren()
Dim CB As CommandBar
On Error Resume Next
Application.CommandBars("Test1").Delete
Set CB = Application.CommandBars.Add( \_
Name:="Test1", \_
temporary:=True, \_
Position:=msoBarTop)
With CB
.RowIndex = 3
.Left = 0
End With
CB.Visible = True
Application.CommandBars("Test2").Delete
Set CB = Application.CommandBars.Add( \_
Name:="Test2", \_
temporary:=True, \_
Position:=msoBarTop)
With CB
.RowIndex = 3
.Left = 250
End With
CB.Visible = True
Set CB = Nothing
End Sub
Quelle: www.ms-office-forum.net
Gruß
Reinhard