Share via


MailMerge.DocumentUpdating Property

Publisher Developer 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.

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.

Visual Basic for Applications
  Sub MailMergeProcedure()
    ActiveDocument.MailMerge.DocumentUpdating = False ' Mail merge code.	
ActiveDocument.MailMerge.DocumentUpdating = True
End Sub
   

See Also