Application.MailMergeDataSourceValidate2 Event
Office 2007
| Word Developer Reference |
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. |
Note