Share via


MailMerge Members

Include Protected Members
Include Inherited Members

Represents the mail merge functionality in Microsoft Word.

The MailMerge type exposes the following members.

Methods

  Name Description
Public method Check Simulates the mail merge operation, pausing to report each error as it occurs.
Public method CreateDataSource Creates a Microsoft Word document that uses a table to store data for a mail merge.
Public method CreateHeaderSource Creates a Microsoft Word document that stores a header record that's used in place of the data source header record in a mail merge.
Public method EditDataSource Opens or switches to the mail merge data source.
Public method EditHeaderSource Opens the header source attached to a mail merge main document, or activates the header source if it's already open.
Public method EditMainDocument Activates the mail merge main document associated with the specified header source or data source document.
Public method Execute Performs the specified mail merge operation.
Public method OpenDataSource Attaches a data source to the specified document, which becomes a main document if it's not one already.
Public method OpenDataSource2000 Reserved for internal use.
Public method OpenHeaderSource Attaches a mail merge header source to the specified document.
Public method OpenHeaderSource2000 Reserved for internal use.
Public method ShowWizard Displays the Mail Merge Wizard in a document.
Public method UseAddressBook Reserved for internal use.

Top

Properties

  Name Description
Public property Application Returns a Application object that represents the Microsoft Word application.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property DataSource Returns a MailMergeDataSource object that refers to the data source attached to a mail merge main document.
Public property Destination Returns or sets the destination of the mail merge results.
Public property Fields Returns a MailMergeFields collection that represents all the mail merge related fields in the specified document.
Public property HighlightMergeFields Determines if the merge fields in a document are highlighted.
Public property MailAddressFieldName Returns or sets the name of the field that contains e-mail addresses that are used when the mail merge destination is electronic mail.
Public property MailAsAttachment Determines if the merge documents are sent as attachments when the mail merge destination is an e-mail message or a fax.
Public property MailFormat Returns a WdMailMergeMailFormat constant that represents the format to use when the mail merge destination is an e-mail message.
Public property MailSubject Returns or sets the subject line used when the mail merge destination is electronic mail.
Public property MainDocumentType Returns or sets the mail merge main document type.
Public property Parent Returns an object that represents the parent object of the specified object.
Public property ShowSendToCustom Returns or sets a String corresponding to the caption on a custom button on the Complete the merge step (step six) of the Mail Merge Wizard.
Public property State Returns the current state of a mail merge operation.
Public property SuppressBlankLines Determines if blank lines are suppressed when mail merge fields in a mail merge main document are empty.
Public property ViewMailMergeFieldCodes Determines if merge field names are displayed in a mail merge main document.
Public property WizardState Returns or sets an Integer indicating the current Mail Merge Wizard step for a document.

Top

See Also

Reference

MailMerge Interface

Microsoft.Office.Interop.Word Namespace