Document.ClearCustomToolbars Method

Visio Automation Reference

Restores the built-in Microsoft Visio toolbars.

Version Information
 Version Added:  Visio 4.0

Syntax

expression.ClearCustomToolbars

expression   A variable that represents a Document object.

Return Value
Nothing

Remarks

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 Office Visio toolbars.

Visual Basic for Applications
  
Public Sub ClearCustomToolbars_Example()
'Tell Visio to use the built-in toolbars. 
ThisDocument.ClearCustomToolbars 
Visio.Application.ClearCustomToolbars 

End Sub

See Also