MailMergeDataSource.InvalidAddress Property
Word Developer Reference |
True for Microsoft Office Word to mark a record in a mail merge data source if it contains invalid data in an address field. Read/write Boolean.
Syntax
expression.InvalidAddress
expression An expression that returns a MailMergeDataSource object.
Remarks
Use the SetAllErrorFlags method to set both the InvalidAddress and InvalidComments properties for all records in a data source.
Example
This example loops through the records in the mail merge data source and checks whether the ZIP Code field (in this case field number six) contains fewer than five digits. If a record does contain a ZIP Code of fewer than five digits, the record is excluded from the mail merge and the address is marked as invalid.
Visual Basic for Applications |
---|
|
See Also