ToolbarState()

Syntax

ToolbarState(Toolbar$)

Remarks

Returns –1 if the toolbar specified by Toolbar$ is displayed and 0 (zero) if it is not.

Example

This example switches to page layout view if the Drawing toolbar is displayed.


If ToolbarState("Drawing") Then ViewPage

See Also

ToolbarName$(), ViewRibbon, ViewRuler, ViewStatusBar, ViewToolbars