XL98: How to Place a Checkmark Next to a Menu Item (199563)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q199563 SUMMARY
If you are working with menus programmatically, you may want to add a
checkmark next to a particular menu item to show the item is active.
For example, when you point to Filter on the Data menu and then click AutoFilter, a checkmark is placed next to AutoFilter to show that the AutoFilter is currently turned on.
This article provides sample macros for programmatically adding a
checkmark next to a custom menu item using the new CommandBars object model.
NOTE: There is no way to programmatically add a checkmark next to a
built-in menu item; you can add checkmarks only to custom items.
REFERENCES
For more information about CommandBars, from the Visual Basic Editor, click the
Office Assistant, type commandbar object, click Search, and
then click to view "CommandBar Object."
For more information about getting help with Visual Basic for Applications, click the article number below to view the article in the Microsoft Knowledge Base:
163435
VBA: Programming Resources for Visual Basic for Applications
For more information about running sample code, click the article number below to view the article in the Microsoft Knowledge Base:
181058
OFF98: How to Run Sample Macro Code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 9/12/2006 |
---|
Keywords: | kbcode kbhowto kbinfo kbualink97 KB199563 |
---|
|