This documentation is archived and is not being maintained.

MailMergeDataSource Object Members

Office 2007

Represents the data source in a mail merge or catalog merge operation.

Methods

 NameDescription
Aa438640.methods(en-us,office.12).gif ApplyFilter Applies a filter to a mail merge data source to remove (or filter out) specified records containing (or not containing) specific data.
Aa438640.methods(en-us,office.12).gif Close Closes the specified mail merge data source, cancels the mail merge, and converts all mail merge data fields to plain text.
Aa438640.methods(en-us,office.12).gif EditRecord Changes one of the data fields in one of the records in the master data source (the combined mail-merge recipient list).
Aa438640.methods(en-us,office.12).gif FindRecord Searches the contents of the specified mail merge data source for text in a particular field. Returns a Boolean indicating whether the search text is found; True if the search text is found.
Aa438640.methods(en-us,office.12).gif OpenRecipientsDialog Displays the Recipients dialog box for a mail merge publication.
Aa438640.methods(en-us,office.12).gif SetAllErrorFlags Marks all records in a mail merge data source as containing invalid data in an address field.
Aa438640.methods(en-us,office.12).gif SetAllIncludedFlags True to include all data source records in a mail merge.
Aa438640.methods(en-us,office.12).gif SetSortOrder Sets the sort order for mail merge data.

Properties

 NameDescription
Aa438640.properties(en-us,office.12).gif ActiveRecord Returns or sets a Long that represents the active mail merge data record. Read/write.
Aa438640.properties(en-us,office.12).gif Application Used without an object qualifier, this property returns an Application object that represents the current instance of Publisher. Used with an object qualifier, this property returns an Application object that represents the creator of the specified object. When used with an OLE Automation object, it returns the object's application.
Aa438640.properties(en-us,office.12).gif ConnectString Returns a String that represents the connection to the specified mail merge data source. Read-only.
Aa438640.properties(en-us,office.12).gif DataFields Returns a MailMergeDataFields collection that represents the fields in the specified data source.
Aa438640.properties(en-us,office.12).gif DataSources Returns the MailMergeDataSources collection that includes the parent MailMergeDataSource object. Read-only.
Aa438640.properties(en-us,office.12).gif EverValidated Indicates whether the list of recipient addresses in the parent MailMergeDataSource object has ever been validated. Read/write.
Aa438640.properties(en-us,office.12).gif Filters Returns a MailMergeFilters object that represents filters applied to the mail merge or catalog merge data source.
Aa438640.properties(en-us,office.12).gif FirstRecord Returns or sets a Long that represents the number of the first data record to be merged in a mail merge or catalog merge operation. Read/write.
Aa438640.properties(en-us,office.12).gif Included True if a record is included in a mail merge. Read/write Boolean.
Aa438640.properties(en-us,office.12).gif InvalidAddress True to mark a record in a mail merge data source if it contains invalid data. Read/write Boolean.
Aa438640.properties(en-us,office.12).gif InvalidComments If the InvalidAddress property is True, this property returns or sets a String that describes invalid data in a mail merge record. Read/write.
Aa438640.properties(en-us,office.12).gif IsMaster Indicates whether the parent MailMergeDataSource object is a master data source (a combination of all data sources connected to the current publication). Read-only.
Aa438640.properties(en-us,office.12).gif LastRecord Returns or sets a Long that represents the number of the last data record to be merged in a mail merge or catalog merge operation. Read/write.
Aa438640.properties(en-us,office.12).gif MappedDataFields Returns a MailMergeMappedDataFields object that represents the mapped data fields available in Microsoft Office Publisher.
Aa438640.properties(en-us,office.12).gif Name Returns a String value indicating the name of the specified object. Read-only.
Aa438640.properties(en-us,office.12).gif Parent Returns an object that represents the parent object of the specified object. For example, for a TextFrame object, returns a Shape object representing the parent shape of the text frame. Read-only.
Aa438640.properties(en-us,office.12).gif RecordCount Returns a Long that represents the number of records in the data source. Read-only.
Aa438640.properties(en-us,office.12).gif TableName Returns a String that represents the name of the table within the data source file that contains the mail merge records. The returned value may be blank if the table name is unknown or not applicable to the current data source. Read-only.
Aa438640.properties(en-us,office.12).gif Type Returns a Long that represents the type of mail merge or catalog merge data source. Read-only.
Aa438640.properties(en-us,office.12).gif ValidatedClean Indicates whether all recipient addresses in the the parent MailMergeDataSource object were successfully validated, and whether any changes have been made to the list since the last validation that require the list to be validated again. Read/write.


Show: