CheckName Method

Microsoft Word Visual Basic

CheckName Method

       

Validates the e-mail addresses that appear in the To:, Cc:, and Bcc: lines in the active e-mail message. This method is available only if you are using Word as your e-mail editor.

Note   If the names cannot be validated, the Check Names dialog box is displayed.

expression.CheckName

expression   Required. An expression that returns a MailMessage object.

Example

This example validates the e-mail addresses that appear in the active e-mail message.

Application.MailMessage.CheckName