The information in this article applies to:
SUMMARYThere are many shortcut menus that appear when you right-click an object in Microsoft Excel. For example, if you right-click a worksheet tab, the following shortcut menu appears: Insert...This article lists all of the built-in shortcut menus in Microsoft Excel 97 and provides a sample macro code for disabling a shortcut menu. 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/support/supportnet/overview/overview.aspThe following table lists all of the built-in shortcut menus and the value of the Index property for each menu.
NOTE: The list may vary beyond property index #81 based on additional
add-ins that are installed and custom menus that exist.
The following macro disables the shortcut menu for worksheet tabs:
NOTE: To make the shortcut menu available for worksheet tabs, change the
Enabled property in the above macro to True, and then rerun the macro.
REFERENCESFor more information about Command Bars, click the Office Assistant while in the Visual Basic Editor, type commandbars, click Search, and then click to view "Using command bars". Additional query words: 97 8.00 XL97
Keywords : kbprg kbualink97 kbdta kbdtacode xlui KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |