Moving Custom Dialog Box Leaves a Copy of Dialog on Screen (138622)



The information in this article applies to:

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

This article was previously published under Q138622

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:

72616 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

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbprb kbProgramming KB138622