Share via


MailMerge.Destination Property

Word Developer Reference

Returns or sets the destination of the mail merge results. Read/write WdMailMergeDestination.

Syntax

expression.Destination

expression   Required. A variable that represents a MailMerge object.

Example

This example sends the results of a mail merge operation to a new document.

Visual Basic for Applications
  Dim mmTemp As MailMerge

Set mmTemp = ActiveDocument.MailMerge

If mmTemp.State = wdMainAndDataSource Then mmTemp.Destination = wdSendToNewDocument mmTemp.Execute End If

See Also