InvisibleApp.CustomMenusFile Property
Visio Automation Reference |
Gets or sets the name of the file that defines custom menus and accelerators for an Application object or a Document object. Read/write.
Version Information
Version Added: Visio 4.0
Syntax
expression.CustomMenusFile
expression A variable that represents an InvisibleApp object.
Return Value
String
Remarks
If the object is not using custom menus, the CustomMenusFile property returns Nothing.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to get the currently active UI for your document without replacing the application-level custom UI. It also saves any existing custom menus to a file and specifies that the current document use those menus. You must write additional code to add your custom UI items.
Note |
---|
This macro uses the VBA keyword Kill to delete a file on disk. Use this keyword carefully, because you cannot undo a Kill command once it has been run, and you will not get a prior warning message. |
Visual Basic for Applications |
---|
|
See Also