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

ID: Q138622

The information in this article applies to:

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

Last Reviewed: December 2, 1997