ClearCustomMenus Method [Visio 2003 SDK Documentation]
Restores the built-in Microsoft Office Visio menus.
object**.ClearCustomMenus**
object Required. An expression that returns an Application or Document object that is using the custom menus.
Version added
4.0
Remarks
Calling the ClearCustomMenus method on an object without custom menus has no effect.
Example
This example shows how to clear custom menus for the ThisDocument and Application objects and restore the built-in Visio menus.
Public Sub ClearCustomMenus_Example()
'Tell Visio to use the built-in menus.
ThisDocument.ClearCustomMenus
Visio.Application.ClearCustomMenus
End Sub
Applies to | Application object | Document object | InvisibleApp object