The information in this article applies to:
SYMPTOMSIf you run a macro that adds a custom menu item to a menu, the macro is run without error, but the shortcut key combination is not added next to the menu item. Also, the shortcut key for the menu item does not function. CAUSE
Your shortcut key combination may not be displayed next to your custom menu
item, and the shortcut key combination may not work if the macro that
creates the menu item was created in Microsoft Excel for the Macintosh,
version 5.0.
WORKAROUNDMicrosoft 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/support/supportnet/overview/overview.aspThe following example utilizes the new CommandBars object model to add a custom menu to the worksheet menu bar. This custom menu has one menu item added to it, and this menu item has a shortcut key combination listed next to it. Creating and Running the Macro
Removing the Custom Menu
STATUSMicrosoft has confirmed this to be a problem in Microsoft Excel 98 Macintosh Edition. MORE INFORMATION
The following macros successfully run in both Excel 5.0 and Excel 98.
However, in Excel 98, the custom menu item does not have the shortcut key
displayed next to it.
Run the following macro to remove the custom menu created by the Add_Menu
macro from above.
REFERENCES
For more information about command bars, from the Visual Basic Editor,
click the Office Assistant, type commandbars, click Search, and then
click to view "Using command bars."
Q176476 OFF: Office Assistant Not Answering Visual Basic Questions Additional query words: XL98
Keywords : kbdta xlvbahowto xlvbmigrate |
Last Reviewed: February 1, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |