The information in this article applies to:
SUMMARY
Using the WordBasic RenameMenu command, you can rename the top-level menus
in Microsoft Word. To add a new top-level menu item in Word 6.0 use the
ToolsCustomizeMenuBar statement.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/ Word 6.0 SyntaxRenameMenu Menu$, NewName$, Type [, Context]The Type parameter allows you to specify whether you want to modify the menus on the menu bar when a document is open or not. The Context parameter allows you to specify the Normal or Active template. This example renames the Tools menu "Other Tasks" and makes ALT, O the key sequence that activates the menu:
Word 2.0 SyntaxRenameMenu MenuNumber, NewText$The MenuNumber parameter is the number of the menu to rename (numbers 0-7), and "NewText$" is the new menu name. To rename a menu in Word version 2.0 for Windows, follow these steps:
NOTE: The ampersand (&) preceding a character in the menu name sets an
underlined access key for choosing the menu command.
The Word 2.0 menu titles and argument numbers are as follows:
To rename a menu in Word version 1.x for Windows, follow these steps:
The Word 1.x menu titles and argument numbers are as follows:
REFERENCES
"Microsoft Word for Windows Technical Reference," pages 76-77
Additional query words: winword2
Keywords : kbmacro kbdtacode winword macword word6 |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |