Application.MailMergeDataSourceValidate2 Event
Word Developer Reference |
Occurs when a user validates mail merge recipients by clicking the Validate addresses link button in the Mail Merge Recipients dialog box.
Version Information
Version Added: Word 2007
Syntax
expression.MailMergeDataSourceValidate2(Doc, Handled)
expression A variable that represents an Application object declared with events in a class module.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Doc | Required | Document | The mail merge main document. |
Handled | Required | Boolean | True if the add-in has handled the validation event. |
Remarks
If you do not have address verification software installed on your computer, the MailMergeDataSourceValidate2 event allows you to create simple filtering routines, such as looping through records to check the postal codes and removing any that are non-U.S.
Note |
---|
You cannot raise this event from within a Microsoft Visual Basic for Applications (VBA) project. This event functions correctly only in managed add-ins and external applications. For COM add-ins, use the MailMergeDataSourceValidate event. |
See Also