Document.ClearCustomToolbars Method (Visio)
Restores the built-in Microsoft Visio user interface.
Version Information
Version Added: Visio 4.0
Syntax
expression .ClearCustomToolbars
expression A variable that represents a Document object.
Return Value
Nothing
Remarks
Note
Calling the ClearCustomToolbars method on an object without custom toolbars has no effect.
Example
This example shows how to clear custom toolbars for the ThisDocument and Application objects and restore the built-in Microsoft Visio toolbars.
Public Sub ClearCustomToolbars_Example()
'Tell Visio to use the built-in toolbars.
ThisDocument.ClearCustomToolbars
Visio.Application.ClearCustomToolbars
End Sub