Редагувати

Поділитися через


ContactItem.Email2Address property (Outlook)

Returns or sets a String representing the email address of the second email entry for the contact. Read/write.

Syntax

expression. Email2Address

expression A variable that represents a ContactItem object.

Example

This Visual Basic for Applications (VBA) example sets "someone@example.com" as the email address for the second email entry of a contact.

Sub CreatePeerContact() 
 
 Dim myItem As Outlook.ContactItem 
 
 
 
 Set myItem = Application.CreateItem(olContactItem) 
 
 myItem.Email2Address = "someone@example.com" 
 
 myItem.Display 
 
End Sub

See also

ContactItem Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.