MailMerge.DocumentUpdating property (Publisher)

Returns or sets a Boolean indicating whether the screen is updated while mail merge code is running. The default is True (the screen is updated). Read/write.

Syntax

expression.DocumentUpdating

expression A variable that represents a MailMerge object.

Return value

Boolean

Remarks

Turning document 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 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

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.