Syntax
RenameMenu Menu$, NewName$, Type [, Context]
Remarks
Renames the specified menu. If Menu$ is not one of the menus of the given Type, an error occurs.
Argument | Explanation | |
Menu$ | The name of a menu as it appears on the menu bar. Including an ampersand (&) before the access key in the menu name is optional (for example, you can specify either "File" or "&File"). | |
NewName$ | The new menu name. An ampersand (&) before a character in the menu name sets the access key for displaying the menu. |
Argument | Explanation | |
Type | The type of menu: 0 (zero) Menus on the menu bar when a document is open. 1 Menus on the menu bar when no document is open. Note that you cannot rename shortcut menus. | |
Context | Specifies where the new menu name is stored: 0 (zero) or omitted Normal template (the new menu name appears regardless of which template is active). 1 Active template (the new menu name appears only when the template is active). |
Example
This example renames the Tools menu "Other Tasks" and makes Alt, T (Windows) or COMMAND+TAB, T (Macintosh) the key sequence that activates the menu:
RenameMenu "Tools", "Other &Tasks", 0
See Also
MenuText$(), ToolsCustomizeMenus