Returns or sets the destination of the mail merge results. Read/write WdMailMergeDestination.
WdMailMergeDestination can be one of these WdMailMergeDestination constants. |
wdSendToFax |
wdSendToPrinter |
wdSendToEmail |
wdSendToNewDocument |
expression.Destination
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example sends the results of a mail merge operation to a new document.
Dim mmTemp As MailMerge
Set mmTemp = ActiveDocument.MailMerge
If mmTemp.State = wdMainAndDataSource Then
mmTemp.Destination = wdSendToNewDocument
mmTemp.Execute
End If