Toolbars class

The collection of IDE toolbars. Reached through Host.Toolbars. Currently there is only one toolbar — Host.Toolbars(0) — but the surface is collection-shaped so future IDE versions can add more.

With Host.Toolbars(0)
    .AddSplitter
    Set Button1 = .AddButton("MyAddIn.Button1", "Refresh")
End With

Properties

Count

The number of toolbars. Long, read-only. Currently always 1.

Item

Indexed access to a toolbar. DefaultMember — so Toolbars(0) is equivalent to Toolbars.Item(0).

Syntax: toolbars( Index ) As Toolbar

Index
A zero-based Variant index. Currently 0 is the only valid value.