Adding an icon menu item to standard toolbar

B

Brent Burkart

I am trying to add an icon button menu item to the standard toolbar. I have
found ways to add a menu to other controls. Has anyone done this? Here is
a snippet of my code.

Dim objButton As CommandBarButton
Set objButton = CommandBars(1).Controls("Standard").Add(msoControlButton,
, , , True)
With objButton
.Caption = "Test Toolbar"
.Tag = "Personal button"
.Style = msoButtonIconAndCaption
.OnAction = MenuItemMacro

End With
 
W

Word Heretic

G'day "Brent Burkart" <[email protected]>,

You need to use msoControlButtonPopup or something similar


Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Brent Burkart reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top