XL: Submenu Item Appears Enabled with Worksheet Maximized

Last reviewed: September 13, 1996
Article ID: Q118955
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows 95, version 7.0

SYMPTOMS

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.

CAUSE

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.

WORKAROUND

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.

REFERENCES

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



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 13, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.