Share via


ApplicationEvents4_Event.MailMergeDataSourceValidate Event

Occurs when a user performs address verification by clicking Validate 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 MailMergeDataSourceValidate As ApplicationEvents4_MailMergeDataSourceValidateEventHandler
'Usage
Dim instance As ApplicationEvents4_Event
Dim handler As ApplicationEvents4_MailMergeDataSourceValidateEventHandler

AddHandler instance.MailMergeDataSourceValidate, handler
event ApplicationEvents4_MailMergeDataSourceValidateEventHandler MailMergeDataSourceValidate

Remarks

If you don't have address verification software installed on your computer, the MailMergeDataSourceValidate 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.

See Also

Reference

ApplicationEvents4_Event Interface

ApplicationEvents4_Event Members

Microsoft.Office.Interop.Word Namespace