XL: Moving Custom Dialog Box Leaves a Copy of Dialog on Screen

Last reviewed: December 1, 1997
Article ID: Q138622

The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a

SYMPTOMS

In the versions of Microsoft Excel listed above, when you display and then move a movable custom dialog box, a copy of the dialog box remains in the original location on the screen.

CAUSE

This problem may occur if the following command is called before the custom dialog box is called:

   Application.ScreenUpdating = False

MORE INFORMATION

The ScreenUpdating property in Microsoft Visual Basic for Applications is used to turn screen updating off to speed up your macro code. You will not be able to see what the macro is doing, but it will run faster.

For additional information on custom dialog boxes and screen updating, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q72616
   TITLE     : Custom Dialog Box Leaves Copy on Screen When Moved in Excel

For more information about Screen Updating In Microsoft Excel 7.0, click Answer Wizard on the Help menu, and type:

   ScreenUpdating

REFERENCES

"Microsoft Excel 5 Visual Basic for Applications Reference," page 580, Microsoft Press


Additional query words: 5.00 5.00a 5.00c 7.00 7.00a XL5 XL7
Keywords : kbprg PgmOthr
Version : WINDOWS:5.0,7.0; MACINTOSH:5.0
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


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: December 1, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.