Command BarButton Object

A CommandBarButton is any button or menu item on any CommandBar. You access a specific Command BarButton by referencing the Commandbar it's located in and by using Controls(Index). Index can either be the CommandBarButton object's number position on the menu or toolbar, or its Caption.

For example, you can refer to the first control on a Commandbar called "Wrox" using:


CommandBars("Wrox").Controls("Member Info")

0 0

Post a comment