Udostępnij za pośrednictwem


MailMerge.Destination Property (Word)

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.

Dim mmTemp As MailMerge 
 
Set mmTemp = ActiveDocument.MailMerge 
 
If mmTemp.State = wdMainAndDataSource Then 
 mmTemp.Destination = wdSendToNewDocument 
 mmTemp.Execute 
End If

See Also

Concepts

MailMerge Object

MailMerge Object Members