Application.MailMergeDataSourceValidate2 event (Word)

Occurs when a user validates mail merge recipients by clicking the Validate addresses link button in the Mail Merge Recipients dialog box.

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 don't 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

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.