Run-Time Modifications to Toolbars and Toolbar Buttons

If you want to make changes to toolbars and toolbar buttons while your application is running, you must use Visual Basic procedures to access the Toolbar and ToolbarButton objects and apply the appropriate properties or methods. For more information about using these objects, see "Toolbar Object" and "ToolbarButton Object" in Help.

Note

Be careful when you use the toolbar button index number to access a member of the ToolbarButtons collection. The index number represents the position of the button on the toolbar, and this number can change when buttons are added to or deleted from the toolbar.