ID: Q118955
5.00 5.00c 7.00 WINDOWS kbprg kbcode xlwin
The information in this article applies to:
In a Visual Basic procedure in Microsoft Excel, if you use the Enabled property of the MenuItem object to make a submenu unavailable (dimmed), the menu item appears available when the worksheet window is maximized.
This behavior occurs if the window of the workbook that contains the unavailable submenu item is maximized when you choose the submenu item. The item appears unavailable as expected when the window is restored.
Note that this is not a problem in Microsoft Excel for the Macintosh.
To work around this behavior, you must restore the active workbook window before you choose the submenu item. To restore a workbook window, press CTRL+F5.
For more information about the Enabled Property, choose the Search button in the Visual Basic Reference and type:
enabled menus, returning
KBCategory: kbprg kbcode
KBSubcategory: xlwin
Additional reference words: 7.00 5.00 5.00c grey gray
Keywords : xlwin
Version : 5.00 5.00c 7.00
Platform : WINDOWS
Last Reviewed: September 16, 1996