Share via


ClearCustomToolbars Method [Visio 2003 SDK Documentation]

Restores the built-in Microsoft Visio toolbars.

object**.ClearCustomToolbars**

object     Required. An expression that returns an Application or Document object that is using the custom toolbars.

Version added

4.0

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.

Public Sub ClearCustomToolbars_Example()

    'Tell Visio to use the built-in toolbars. 
    ThisDocument.ClearCustomToolbars 
    Visio.Application.ClearCustomToolbars 

End Sub  

Applies to | Application object | Document object | InvisibleApp object