DocumentUpdating Property [Publisher 2003 VBA Language Reference]
Returns or sets a Boolean indicating whether the screen is updated while mail merge code is running. Default is True (the screen is updated). Read/write.
expression.DocumentUpdating
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
Turning document updating off during run time can speed execution of Visual Basic code. However, it is recommended to provide some indication of status so that the user is aware that the program is functioning correctly.
Example
The following example turns off document updating at the beginning of a mail merge subroutine and turns it back on at the end of the subroutine.
Sub MailMergeProcedure()
ActiveDocument.MailMerge.DocumentUpdating= False
' Mail merge code.
ActiveDocument.MailMerge.DocumentUpdating= True
End Sub
Applies to | MailMerge Object