XL97: How to Place a Checkmark Next to a Menu Item (161926)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q161926 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, click the Office Assistant, type
commandbar click Search, and then click to view "CommandBar Object".
| Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
|---|
| Keywords: | kbdtacode kbProgramming kbualink97 KB161926 |
|---|
|