Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Application.MailMergeDataSourceValidate2 Event

Office 2007
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

NameRequired/OptionalData TypeDescription
DocRequiredDocumentThe mail merge main document.
HandledRequiredBooleanTrue 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.

Bb243345.vs_note(en-us,office.12).gif  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.



Community Additions

Show: