Excel: Redraw Problem when Opening and Hiding WorksheetsLast reviewed: September 12, 1996Article ID: Q104357 |
The information in this article applies to:
SYMPTOMSIn Microsoft Excel, a macro that opens and then hides a document which has been saved and minimized as an icon may produce unpredictable results when your screen is redrawn. These unexpected results include displaying only a portion of the hidden worksheets' icon and control menu box. When this happens, you may be able to select some of the control menu commands (such as the Maximize command).
CAUSEThese unexpected results occur when the ECHO(FALSE) macro command appears in the macro prior to the OPEN() and HIDE() statements.
WORKAROUNDTo keep the screen from being redrawn, do either of the following:
MORE INFORMATIONIn Microsoft Excel, the following attributes are saved when you save a document: the window size, the number of open windows, and the state (other than the maximized state) of the window. If you save a worksheet in the minimized state (as an icon), it will appear as an icon when you reopen it. You CAN unhide a sheet by choosing the Unhide command from the Window menu, even if the sheet is minimized and opened while ECHO=FALSE is active. When you are using ECHO(TRUE), a macro to OPEN() and HIDE() the sheet will display the icon briefly before hiding it.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |