ApplicationEvents4_Event.MailMergeDataSourceValidate2 event

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

'Declaration
Event MailMergeDataSourceValidate2 As ApplicationEvents4_MailMergeDataSourceValidate2EventHandler
'Usage
Dim instance As ApplicationEvents4_Event
Dim handler As ApplicationEvents4_MailMergeDataSourceValidate2EventHandler

AddHandler instance.MailMergeDataSourceValidate2, handler

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.

NoteNote

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.

Show:
© 2015 Microsoft