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)
Syntax
'Declaration
Event MailMergeDataSourceValidate2 As ApplicationEvents4_MailMergeDataSourceValidate2EventHandler
'Usage
Dim instance As ApplicationEvents4_Event
Dim handler As ApplicationEvents4_MailMergeDataSourceValidate2EventHandler
AddHandler instance.MailMergeDataSourceValidate2, handler
event ApplicationEvents4_MailMergeDataSourceValidate2EventHandler MailMergeDataSourceValidate2
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
Reference
ApplicationEvents4_Event Interface