Syntax
CountToolbarButtons(Toolbar$ [, Context])
Remarks
Returns the number of toolbar buttons on the specified toolbar. Note that spaces and list boxes are counted as "buttons."
Argument | Explanation |
Toolbar$ | The name of the toolbar as it appears in the Toolbars dialog box (View menu) |
Context | Specifies which buttons to count: 0 (zero) The buttons that are available when a document based on the Normal template is active 1 or omitted The buttons that are currently available Note that the buttons that are available depend on the custom settings, if any, of the active template, any loaded global templates, and the Normal template. |
For an example, see CountToolbars().
See Also
CountToolbars(), ToolbarButtonMacro$(), ToolbarName$()