Mail Merge

wdMailMergeActiveRecordSpecifies the active record in a mail merge result set.
wdMailMergeComparisonSpecifies the type of comparison to use when a condition is added to a mail merge process.
wdMailMergeDataSourceSpecifies the data source for a mail merge operation.
wdMailMergeDefaultRecordSpecifies the default record to use in a mail merge process.
wdMailMergeDestinationSpecifies the destination for the mail merge results.
wdMailMergeMailFormatSpecifies the format to use when the mail merge destination is an e-mail message.
wdMailMergeMainDocTypeSpecifies the type of mail merge document.
wdMailMergeStateSpecifies the state of a mail merge operation.
wdMergeSubTypeSpecifies the data source to be attached to the document.
wdMailMergeActiveRecord
Specifies the active record in a mail merge result set.
wdMailMergeComparison
Specifies the type of comparison to use when a condition is added to a mail merge process.
wdMailMergeDataSource
Specifies the data source for a mail merge operation.
wdMailMergeDefaultRecord
Specifies the default record to use in a mail merge process.
wdMailMergeDestination
Specifies the destination for the mail merge results.
wdMailMergeMailFormat
Specifies the format to use when the mail merge destination is an e-mail message.
wdMailMergeMainDocType
Specifies the type of mail merge document.
wdMailMergeState
Specifies the state of a mail merge operation.
wdMergeSubType
Specifies the data source to be attached to the document.

wdMailMergeActiveRecord

Specifies the active record in a mail merge result set.

wdFirstDataSourceRecordThe first record in the data source (-6)
wdFirstRecordThe first record in the result set (-4)
wdLastDataSourceRecordThe last record in the data source (-7)
wdLastRecordThe last record in the result set (-5)
wdNextDataSourceRecordThe next record in the data source (-8)
wdNextRecordThe next record in the result set (-2)
wdNoActiveRecordNo active record (-1)
wdPreviousDataSourceRecordThe previous record in the data source (-9)
wdPreviousRecordThe previous record in the result set (-3)

wdFirstDataSourceRecord
The first record in the data source (-6)
wdFirstRecord
The first record in the result set (-4)
wdLastDataSourceRecord
The last record in the data source (-7)
wdLastRecord
The last record in the result set (-5)
wdNextDataSourceRecord
The next record in the data source (-8)
wdNextRecord
The next record in the result set (-2)
wdNoActiveRecord
No active record (-1)
wdPreviousDataSourceRecord
The previous record in the data source (-9)
wdPreviousRecord
The previous record in the result set (-3)

wdMailMergeComparison

Specifies the type of comparison to use when a condition is added to a mail merge process.

wdMergeIfEqualA value is output if the mail merge field is equal to a value (0)
wdMergeIfGreaterThanA value is output if the mail merge field is greater than a value (3)
wdMergeIfGreaterThanOrEqualA value is output if the mail merge field is greater than or equal to a value (5)
wdMergeIfIsBlankA value is output if the mail merge field is blank (6)
wdMergeIfIsNotBlankA value is output if the mail merge field is not blank (7)
wdMergeIfLessThanA value is output if the mail merge field is less than a value (2)
wdMergeIfLessThanOrEqualA value is output if the mail merge field is less than or equal to a value (4)
wdMergeIfNotEqualA value is output if the mail merge field is not equal to a value (1)

wdMergeIfEqual
A value is output if the mail merge field is equal to a value (0)
wdMergeIfGreaterThan
A value is output if the mail merge field is greater than a value (3)
wdMergeIfGreaterThanOrEqual
A value is output if the mail merge field is greater than or equal to a value (5)
wdMergeIfIsBlank
A value is output if the mail merge field is blank (6)
wdMergeIfIsNotBlank
A value is output if the mail merge field is not blank (7)
wdMergeIfLessThan
A value is output if the mail merge field is less than a value (2)
wdMergeIfLessThanOrEqual
A value is output if the mail merge field is less than or equal to a value (4)
wdMergeIfNotEqual
A value is output if the mail merge field is not equal to a value (1)

wdMailMergeDataSource

Specifies the data source for a mail merge operation.

wdMergeInfoFromAccessDDEFrom Microsoft Access using Dynamic Data Exchange (DDE) (1)
wdMergeInfoFromExcelDDEFrom Microsoft Excel using DDE (2)
wdMergeInfoFromMSQueryDDEFrom MSQuery using DDE (3)
wdMergeInfoFromODBCFrom an Open Database Connectivity (ODBC) (4)
wdMergeInfoFromODSOFrom an Office Data Source Object (ODSO) (5)
wdMergeInfoFromWordFrom Microsoft Word (0)
wdNoMergeInfoNo merge information provided (-1)

wdMergeInfoFromAccessDDE
From Microsoft Access using Dynamic Data Exchange (DDE) (1)
wdMergeInfoFromExcelDDE
From Microsoft Excel using DDE (2)
wdMergeInfoFromMSQueryDDE
From MSQuery using DDE (3)
wdMergeInfoFromODBC
From an Open Database Connectivity (ODBC) (4)
wdMergeInfoFromODSO
From an Office Data Source Object (ODSO) (5)
wdMergeInfoFromWord
From Microsoft Word (0)
wdNoMergeInfo
No merge information provided (-1)

wdMailMergeDefaultRecord

Specifies the default record to use in a mail merge process.

wdDefaultFirstRecordUse the first record in the result set as the default record (1)
wdDefaultLastRecordUse the last record in the result set as the default record (-16)

wdDefaultFirstRecord
Use the first record in the result set as the default record (1)
wdDefaultLastRecord
Use the last record in the result set as the default record (-16)

wdMailMergeDestination

Specifies the destination for the mail merge results.

wdSendToEmailSend results to an e-mail recipient (2)
wdSendToFaxSend results to a fax recipient (3)
wdSendToNewDocumentSend results to a new Word document (0)
wdSendToPrinterSend results to a printer (1)

wdSendToEmail
Send results to an e-mail recipient (2)
wdSendToFax
Send results to a fax recipient (3)
wdSendToNewDocument
Send results to a new Word document (0)
wdSendToPrinter
Send results to a printer (1)

wdMailMergeMailFormat

Specifies the format to use when the mail merge destination is an e-mail message.

wdMailFormatHTMLSends mail merge e-mail documents using HTML format (1)
wdMailFormatPlainTextSends mail merge e-mail documents using plain text (0)

wdMailFormatHTML
Sends mail merge e-mail documents using HTML format (1)
wdMailFormatPlainText
Sends mail merge e-mail documents using plain text (0)

wdMailMergeMainDocType

Specifies the type of mail merge document.

wdCatalogCatalog (3)
wdDirectoryDirectory
wdEmailEmail message
wdEnvelopesEnvelope (2)
wdFaxFax
wdFormLettersForm Letter (0)
wdMailingLabelsMailing Label (1)
wdNotAMergeDocumentNot a mail merge document (-1)

wdCatalog
Catalog (3)
wdDirectory
Directory
wdEmail
Email message
wdEnvelopes
Envelope (2)
wdFax
Fax
wdFormLetters
Form Letter (0)
wdMailingLabels
Mailing Label (1)
wdNotAMergeDocument
Not a mail merge document (-1)

wdMailMergeState

Specifies the state of a mail merge operation.

wdDataSourceA datasource with no main document (5)
wdMainAndDataSourceA main document with an attached data source (2)
wdMainAndHeaderA main document with an attached header source (3)
wdMainAndSourceAndHeaderA main document with attached data source and header source (4)
wdMainDocumentOnlyA main document with no data attached (1)
wdNormalDocumentThe document is not involved in a mail merge operation (0)

wdDataSource
A datasource with no main document (5)
wdMainAndDataSource
A main document with an attached data source (2)
wdMainAndHeader
A main document with an attached header source (3)
wdMainAndSourceAndHeader
A main document with attached data source and header source (4)
wdMainDocumentOnly
A main document with no data attached (1)
wdNormalDocument
The document is not involved in a mail merge operation (0)

REMARKS
* This is Read-Only.

wdMergeSubType

Specifies the data source to be attached to the document.

wdMergeSubTypeAccessMicrosoft Access (1)
wdMergeSubTypeOALMicrosoft Office Address book (2)
wdMergeSubTypeOLEDBTextOLE database (5)
wdMergeSubTypeOLEDBWordOLE database (3)
wdMergeSubTypeOtherOther type of data source (0)
wdMergeSubTypeOutlookMicrosoft Outlook (6)
wdMergeSubTypeWordMicrosoft Word document (7)
wdMergeSubTypeWord2000Microsoft Word 2000 (8)
wdMergeSubTypeWorksMicrosoft Works (4)

wdMergeSubTypeAccess
Microsoft Access (1)
wdMergeSubTypeOAL
Microsoft Office Address book (2)
wdMergeSubTypeOLEDBText
OLE database (5)
wdMergeSubTypeOLEDBWord
OLE database (3)
wdMergeSubTypeOther
Other type of data source (0)
wdMergeSubTypeOutlook
Microsoft Outlook (6)
wdMergeSubTypeWord
Microsoft Word document (7)
wdMergeSubTypeWord2000
Microsoft Word 2000 (8)
wdMergeSubTypeWorks
Microsoft Works (4)


© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top