ScreenUpdating Property

 

The ScreenUpdating property returns or sets redraw for all windows. Returns a Boolean.

 

Syntax

object.ScreenUpdating

object.ScreenUpdating = Update

 

Parameter

Type

Description

Update

Boolean

required; true to redraw windows

 

Remarks

Turning off screen updating can greatly increase the performance of automation when you want to perform a number of actions that cause screen redraws. You can achieve this efficiency by setting ScreenUpdating to false, performing the repetitive operations, and then turning ScreenUpdating back on. When ScreenUpdating is turned back on, all windows are redrawn in the new state.

 

Example 1

This example demonstrates how to return the automatic redraw status of all windows.

 

Debug.Print mvApp.ScreenUpdating

 

Example 2

This example demonstrates how to automatically redraw every window in MapViewer.

 

mvApp.ScreenUpdating = True

 

Used by: Application object