Share via


MailMerge Object Members

Word Developer Reference

Represents the mail merge functionality in Word.

Methods

  Name Description
Bb257631.methods(en-us,office.12).gif Check Simulates the mail merge operation, pausing to report each error as it occurs.
Bb257631.methods(en-us,office.12).gif CreateDataSource Creates a Microsoft Office Word document that uses a table to store data for a mail merge.
Bb257631.methods(en-us,office.12).gif CreateHeaderSource Creates a Microsoft Office Word document that stores a header record that is used instead of the data source header record in a mail merge.
Bb257631.methods(en-us,office.12).gif EditDataSource Opens or switches to the mail merge data source.
Bb257631.methods(en-us,office.12).gif EditHeaderSource Opens the header source attached to a mail merge main document, or activates the header source if it is already open.
Bb257631.methods(en-us,office.12).gif EditMainDocument Activates the mail merge main document associated with the specified header source or data source document.
Bb257631.methods(en-us,office.12).gif Execute Performs the specified mail merge operation.
Bb257631.methods(en-us,office.12).gif OpenDataSource Attaches a data source to the specified document, which becomes a main document if it is not one already.
Bb257631.methods(en-us,office.12).gif OpenHeaderSource Attaches a mail merge header source to the specified document.
Bb257631.methods(en-us,office.12).gif ShowWizard Displays the Mail Merge Wizard in a document.

Properties

  Name Description
Bb257631.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb257631.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb257631.properties(en-us,office.12).gif DataSource Returns a MailMergeDataSource object that refers to the data source attached to a mail merge main document. Read-only.
Bb257631.properties(en-us,office.12).gif Destination Returns or sets the destination of the mail merge results. Read/write WdMailMergeDestination.
Bb257631.properties(en-us,office.12).gif Fields Returns a read-only MailMergeFields collection that represents all the mail merge fields in the specified document.
Bb257631.properties(en-us,office.12).gif HighlightMergeFields True to highlight the merge fields in a document. Read/write Boolean.
Bb257631.properties(en-us,office.12).gif 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. Read/write String.
Bb257631.properties(en-us,office.12).gif MailAsAttachment True if the merge documents are sent as attachments when the mail merge destination is an e-mail message or a fax. Read/write Boolean.
Bb257631.properties(en-us,office.12).gif MailFormat Returns a WdMailMergeMailFormat constant that represents the format to use when the mail merge destination is an e-mail message. Read/write.
Bb257631.properties(en-us,office.12).gif MailSubject Returns or sets the subject line used when the mail merge destination is electronic mail. Read/write String.
Bb257631.properties(en-us,office.12).gif MainDocumentType Returns or sets the mail merge main document type. Read/write WdMailMergeMainDocType.
Bb257631.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified MailMerge object.
Bb257631.properties(en-us,office.12).gif 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. Read/write.
Bb257631.properties(en-us,office.12).gif State Returns the current state of a mail merge operation. Read-only WdMailMergeState.
Bb257631.properties(en-us,office.12).gif SuppressBlankLines True if blank lines are suppressed when mail merge fields in a mail merge main document are empty. Read/write Boolean.
Bb257631.properties(en-us,office.12).gif ViewMailMergeFieldCodes True if merge field names are displayed in a mail merge main document. False if information from the current record is displayed. Read/write Long.
Bb257631.properties(en-us,office.12).gif WizardState Returns or sets a Long indicating the current Mail Merge Wizard step for a document. The WizardState method returns a number that equates to the current Mail Merge Wizard step; a zero (0) means the Mail Merge Wizard is closed. Read/write.