Microsoft Knowledge Base

XL5: Button Not Visible in User-Defined Dialog Box

Last reviewed: March 27, 1997
Article ID: Q118373
5.00 5.00c 7.00 7.00a | 5.00 5.00a WINDOWS | MACINTOSH kbref kbusage

The information in this article applies to:

  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a

SYMPTOMS

In Microsoft Excel, when you run a Microsoft Excel 4.0 macro that displays a user-defined dialog box, if a label is defined on the dialog definition table with the same coordinates as a dialog control (such as to overlap a button), the label completely hides the control. The control still functions, but it is not visible in the dialog box.

Note that if you run the same macro in Microsoft Excel version 4.0, the control is visible, with the label on top of it.

CAUSE

This behavior occurs because of a change in the way that overlapping objects are displayed. In Microsoft Excel version 5.0, a label is filled, and covers any object that it is positioned on top of. Note that this is also true of a dialog box that you create using a dialog sheet.

WORKAROUND

To avoid covering a button or other control on a user-defined dialog box, do not overlap objects by making a label's coordinates large enough to overlap other controls in the dialog box, or by giving them the same coordinates in the dialog definition table.


KBCategory: kbref kbusage
KBSubcategory:

Additional reference words: 5.00 5.00a 5.00c 7.00 7.00a udd top invisible
disappear
Keywords : kbref kbusage
Version : 5.00 5.00c 7.00 7.00a | 5.00 5.0
Platform : MACINTOSH WINDOWS


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: March 27, 1997
©1997 Microsoft Corporation. All rights reserved. Legal Notices.