Application.ScreenUpdating Property
Word Developer Reference |
True if screen updating is turned on. Read/write Boolean.
Syntax
expression.ScreenUpdating
expression An expression that returns an Application object.
Remarks
The ScreenUpdating property controls most display changes on the monitor while a procedure is running. When screen updating is turned off, toolbars remain visible and Word still allows the procedure to display or retrieve information using status bar prompts, input boxes, dialog boxes, and message boxes. You can increase the speed of some procedures by keeping screen updating turned off. You must set the ScreenUpdating property to True when the procedure finishes or when it stops after an error.
Example
This example turns off screen updating and then adds a new document. Five hundred lines of text are added to the document. At every fiftieth line, the macro selects the line and refreshes the screen.
Visual Basic for Applications |
---|
|
See Also