ForwardAsBusinessCard Method
TOC
Collapse the table of content
Expand the table of content

ContactItem.ForwardAsBusinessCard Method (Outlook)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Creates a new MailItem object containing contact information and, optionally, an Electronic Business Card (EBC) image based on the specified ContactItem object.

expression .ForwardAsBusinessCard

expression An expression that returns a ContactItem object.

Return Value

A MailItem object that represents the new e-mail item containing the business card information.

This method creates a new Outlook mail item based on the information stored in the ContactItem object. The information included in the Outlook mail item depends on the value of the BodyFormat property for the MailItem object:

Property value

Result

olFormatPlain

A vCard (.vcf) file is created and added to the Attachments collection of the MailItem object.

olFormatRichText

A vCard file is created and added to the Attachments collection of the MailItem object.

olFormatHTML

An image of the Electronic Business Card is generated and included in the Body property of the MailItem object, and a vCard file is created and added to the Attachments collection of the MailItem object.

Note Note

The attached vCard file contains only the contact information included in the Electronic Business Card associated with the ContactItem object. Any contact information not displayed in the Electronic Business Card is excluded from the vCard file.

Show:
© 2016 Microsoft