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)

Usage

WithEvents applicationEvents4_Event1 As ApplicationEvents4_Event
Function applicationEvents4_Event1_MailMergeDataSourceValidate(Doc As Document, _
    Handled As Boolean) As Void
    Handles applicationEvents4_Event1.MailMergeDataSourceValidate
End Function

Syntax

Event MailMergeDataSourceValidate As ApplicationEvents4_MailMergeDataSourceValidateEventHandler
event ApplicationEvents4_MailMergeDataSourceValidateEventHandler MailMergeDataSourceValidate;
event ApplicationEvents4_MailMergeDataSourceValidateEventHandler^ MailMergeDataSourceValidate;
 void add_MailMergeDataSourceValidate(ApplicationEvents4_MailMergeDataSourceValidateEventHandler handler);
 void remove_MailMergeDataSourceValidate(ApplicationEvents4_MailMergeDataSourceValidateEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

ApplicationEvents4_Event Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

ApplicationEvents4_Event Members