Application.ScreenUpdating property (Publisher)

Returns or sets a Boolean indicating whether Microsoft Publisher refreshes the screen display during run time; True to refresh the screen display. Read/write.

Syntax

expression.ScreenUpdating

expression A variable that represents an Application object.

Return value

Boolean

Remarks

Turning screen updating off during runtime can speed execution of Microsoft Visual Basic code. However, we recommend that you provide some indication of status so that the user is aware that the program is functioning correctly.

Example

The following example turns off screen updating at the beginning of a subroutine and turns it back on at the end of the subroutine.

Sub TurnOffScreenUpdating() 
 ScreenUpdating = False 
 
 ' Execute code here. 
 
 ScreenUpdating = True 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.