This documentation is archived and is not being maintained.

ScreenUpdating Property.ScreenUpdating Property

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



expression   A variable that represents a ScreenUpdating Property object.

Return Value


Turning screen updating off during run time 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.


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

Visual Basic for Applications
Sub TurnOffScreenUpdating()
    ScreenUpdating = False

    ' Execute code here.

    ScreenUpdating = True
End Sub