Table of contents
TOC
Collapse the table of content
Expand the table of content

MailMerge.DocumentUpdating Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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.

Syntax

expression. DocumentUpdating

_expression_A variable that represents a MailMerge object.

Return Value

Boolean

Remarks

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

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
© 2018 Microsoft