Class ContactItem (Outlook VBA)

The class ContactItem represents a contact in a Contacts folder.

The classes AddressEntry, ExchangeDistributionList and ExchangeUser. give access to class ContactItem


Dim cim as ContactItem
Set cim = Session.GetAddressEntryFromID.GetContact()

For Each

Here is an example of processing the ContactItem items in a collection.


Dim cimItem As ContactItem
For Each cimItem In Session.Items
	
Next cimItem

Methods

AddBusinessCardLogoPicture - Adds a logo picture to the current Electronic Business Card of the contact item.

AddPicture - Adds a picture to a contact item.

ClearTaskFlag - Clears the ContactItem object as a task.

Copy - Creates another instance of an object.

Delete - Removes the item from the folder that contains the item.

Display - Displays a new Inspector object for the item.

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

ForwardAsVcard - Creates a MailItem and attaches the contact information in vCard format.

GetConversation - Obtains a Conversation object that represents the conversation to which this item belongs.

MarkAsTask - Marks a ContactItem object as a task and assigns a task interval for the object.

Move - Moves a Microsoft Outlook item to a new folder.

PrintOut - Prints the Outlook item using all default settings.The PrintOut method is the only Outlook method that can be used for printing.

RemovePicture - Removes a picture from a Contacts item.

ResetBusinessCard - Resets the Electronic Business Card on the contact item to the default business card, deleting any custom layout and logo on the Electronic Business Card.

Save - Saves the Microsoft Outlook item to the current folder or, if this is a new item, to the Outlook default folder for the item type.

SaveAs - Saves the Microsoft Outlook item to the specified path and in the format of the specified file type. If the file type is not specified, the MSG format (.msg) is used.

SaveBusinessCardImage - Saves an image of the business card generated from the specified ContactItem object.

ShowBusinessCardEditor - Displays the electronic business card (EBC) editor dialog box for the ContactItem object.

ShowCategoriesDialog - Displays the Show Categories dialog box, which allows you to select categories that correspond to the subject of the item.

ShowCheckAddressDialog - Displays the Check Address dialog box to verify address details of the contact.

ShowCheckFullNameDialog - Displays the Check Full Name dialog box to verify name details of the contact.

ShowCheckPhoneDialog - Displays the Check Phone Number dialog box for a specified telephone number contained by a ContactItem object.

Properties

Account returns or sets a String representing the account for the contact.

Actions returns an Actions collection that represents all the available actions for the item.

Anniversary returns or sets a Date indicating the anniversary date for the contact.

AssistantName returns or sets a String representing the name of the person who is the assistant for the contact.

AssistantTelephoneNumber returns or sets a String representing the telephone number of the person who is the assistant for the contact.

Attachments returns an Attachments object that represents all the attachments for the specified item.

AutoResolvedWinner returns a Boolean that determines if the item is a winner of an automatic conflict resolution.

BillingInformation returns or sets a String representing the billing information associated with the Outlook item.

Birthday returns or sets a Date indicating the birthday for the contact.

Body returns or sets a String representing the clear-text body of the Outlook item.

Business2TelephoneNumber returns or sets a String representing the second business telephone number for the contact.

BusinessAddress returns or sets a String representing the whole, unparsed business address for the contact.

BusinessAddressCity returns or sets a String representing the city name portion of the business address for the contact.

BusinessAddressCountry returns or sets a String representing the country/region code portion of the business address for the contact.

BusinessAddressPostalCode returns or sets a String representing the postal code (ZIP Code) portion of the business address for the contact.

BusinessAddressPostOfficeBox returns or sets a String representing the post office box number portion of the business address for the contact.

BusinessAddressState returns or sets a String representing the state code portion of the business address for the contact.

BusinessAddressStreet returns or sets a String representing the street address portion of the business address for the contact.

BusinessCardLayoutXml returns or sets a String that represents the XML markup for the layout of the Electronic Business Card.

BusinessCardType returns an OlBusinessCardType constant that specifies the type of Electronic Business Card used by this contact.

BusinessFaxNumber returns or sets a String representing the business fax number for the contact.

BusinessHomePage returns or sets a String representing the URL of the business webpage for the contact.

BusinessTelephoneNumber returns or sets a String representing the first business telephone number for the contact.

CallbackTelephoneNumber returns or sets a String representing the callback telephone number for the contact.

CarTelephoneNumber returns or sets a String representing the car telephone number for the contact.

Categories returns or sets a String representing the categories assigned to the Outlook item.

Children returns or sets a String representing the names of the children of the contact.

Class returns an OlObjectClass constant indicating the object's class.

Companies returns or sets a String representing the names of the companies associated with the Outlook item.

CompanyAndFullName returns a String representing the concatenated company name and full name for the contact.

CompanyLastFirstNoSpace returns a String representing the company name for the contact followed by the concatenated last name, first name, and middle name with no space between the last and first names.

CompanyLastFirstSpaceOnly returns a String representing the company name for the contact followed by the concatenated last name, first name, and middle name with spaces between the last, first, and middle names.

CompanyMainTelephoneNumber returns or sets a String representing the company main telephone number for the contact.

CompanyName returns or sets a String representing the company name for the contact.

ComputerNetworkName returns or sets a String representing the name of the computer network for the contact.

Conflicts return the Conflicts object that represents the items that are in conflict for any Outlook item object.

ConversationID returns a String that uniquely identifies a Conversation object that the ContactItem object belongs to.

ConversationIndex returns a String that indicates the relative position of the item within the conversation thread.

ConversationTopic returns a String representing the topic of the conversation thread of the Outlook item.

CreationTime returns a Date indicating the creation time for the Outlook item.

CustomerID returns or sets a String representing the customer ID for the contact.

Department returns or sets a String representing the department name for the contact.

DownloadState returns a constant that belongs to the OlDownloadState enumeration indicating the download state of the item.

Email1Address returns or sets a String representing the email address of the first email entry for the contact.

Email1AddressType returns or sets a String representing the address type (such as EX or SMTP) of the first email entry for the contact.

Email1DisplayName returns a String representing the display name of the first email address for the contact.

Email1EntryID returns a String representing the entry ID of the first email address for the contact.

Email2Address returns or sets a String representing the email address of the second email entry for the contact.

Email2AddressType returns or sets a String representing the address type (such as EX or SMTP) of the second email entry for the contact.

Email2DisplayName returns a String representing the display name of the second email entry for the contact.

Email2EntryID returns a String representing the entry ID of the second email entry for the contact.

Email3Address returns or sets a String representing the email address of the third email entry for the contact.

Email3AddressType returns or sets a String representing the address type (such as EX or SMTP) of the third email entry for the contact.

Email3DisplayName returns a String representing the display name of the third email entry for the contact.

Email3EntryID returns a String representing the entry ID of the third email entry for the contact.

EntryID returns a String representing the unique Entry ID of the object.

FileAs returns or sets a String indicating the default keyword string assigned to the contact when it is filed.

FirstName returns or sets a String representing the first name for the contact.

FormDescription returns the FormDescription object that represents the form description for the specified Outlook item.

FTPSite returns or sets a String representing the FTP site entry for the contact.

FullName returns or sets a String specifying the whole, unparsed full name for the contact.

FullNameAndCompany returns a String representing the full name and company of the contact by concatenating the values of the FullName and CompanyName properties.

Gender returns or sets an OlGender constant indicating the gender of the contact.

GetInspector returns an Inspector object that represents an inspector initialized to contain the specified item.

GovernmentIDNumber returns or sets a String representing the government ID number for the contact.

HasPicture returns a Boolean value that is True if a Contacts item has a picture associated with it. Read-only

Hobby returns or sets a String representing the hobby for the contact.

Home2TelephoneNumber returns or sets a String representing the second home telephone number for the contact.

HomeAddress returns or sets a String representing the full, unparsed text of the home address for the contact.

HomeAddressCity returns or sets a String representing the city portion of the home address for the contact.

HomeAddressCountry returns or sets a String representing the country/region portion of the home address for the contact.

HomeAddressPostalCode returns or sets a String representing the postal code portion of the home address for the contact.

HomeAddressPostOfficeBox returns or sets a String the post office box number portion of the home address for the contact.

HomeAddressState returns or sets a String representing the state portion of the home address for the contact.

HomeAddressStreet returns or sets a String representing the street portion of the home address for the contact.

HomeFaxNumber returns or sets a String representing the home fax number for the contact.

HomeTelephoneNumber returns or sets a String representing the first home telephone number for the contact.

IMAddress returns or sets a String that represents a contact's Microsoft Instant Messenger address.

Importance returns or sets an OlImportance constant indicating the relative importance level for the Outlook item.

Initials returns or sets a String representing the initials for the contact.

InternetFreeBusyAddress returns or sets a String corresponding to the Address box on the Details tab for a contact.

IsConflict returns a Boolean that determines if the item is in conflict.

ISDNNumber returns or sets a String representing the ISDN number for the contact.

IsMarkedAsTask returns a Boolean value that indicates whether the ContactItem is marked as a task.

ItemProperties returns an ItemProperties collection that represents all standard and user-defined properties associated with the Outlook item.

JobTitle returns or sets a String representing the job title for the contact.

Journal returns a Boolean that indicates True if the transaction of the contact will be journalized.

Language returns or sets a String that represents the language in which the contact writes messages.

LastFirstAndSuffix returns a String representing the last name, first name, middle name, and suffix of the contact.

LastFirstNoSpace returns a String representing the concatenated last name, first name, and middle name of the contact with no space between the last name and the first name.

LastFirstNoSpaceAndSuffix returns a String that contains the last name, first name, and suffix of the user without a space. Read-only

LastFirstNoSpaceCompany returns a String representing the concatenated last name, first name, and middle name of the contact with no space between the last name and the first name.

LastFirstSpaceOnly returns a String representing the concatenated last name, first name, and middle name of the contact with spaces between them.

LastFirstSpaceOnlyCompany returns a String representing the concatenated last name, first name, and middle name of the contact with spaces between them.

LastModificationTime returns a Date specifying the date and time that the Outlook item was last modified.

LastName returns or sets a String representing the last name for the contact.

LastNameAndFirstName returns a String representing the concatenated last name and first name for the contact.

MailingAddress returns or sets a String representing the full, unparsed selected mailing address for the contact.

MailingAddressCity returns or sets a String representing the city name portion of the selected mailing address of the contact.

MailingAddressCountry returns or sets a String representing the country/region code portion of the selected mailing address of the contact.

MailingAddressPostalCode returns or sets a String representing the postal code (ZIP Code) portion of the selected mailing address of the contact.

MailingAddressPostOfficeBox returns or sets a String representing the post office box number portion of the selected mailing address of the contact.

MailingAddressState returns or sets a String representing the state code portion for the selected mailing address of the contact.

MailingAddressStreet returns or sets a String representing the street address portion of the selected mailing address of the contact.

ManagerName returns or sets a String representing the manager name for the contact.

MarkForDownload returns or sets an OlRemoteStatus constant that determines the status of an item once it is received by a remote user.

MessageClass returns or sets a String representing the message class for the Outlook item.

MiddleName returns or sets a String representing the middle name for the contact.

Mileage returns or sets a String representing the mileage for an item.

MobileTelephoneNumber returns or sets a String representing the mobile telephone number for the contact.

NetMeetingAlias returns or sets a String indicating the user's Microsoft NetMeeting ID, or alias.

NetMeetingServer returns or sets a String specifying the name of the Microsoft NetMeeting server being used for an online meeting.

NickName returns or sets a String representing the nickname for the contact.

NoAging returns or sets a Boolean value that is True to not age the Outlook item.

OfficeLocation returns or sets a String specifying the specific office location (for example, Building 1 Room 1 or Suite 123) for the contact.

OrganizationalIDNumber returns or sets a String representing the organizational ID number for the contact.

OtherAddress returns or sets a String representing the other address for the contact.

OtherAddressCity returns or sets a String representing the city portion of the other address for the contact.

OtherAddressCountry returns or sets a String representing the country/region portion of the other address for the contact.

OtherAddressPostalCode returns or sets a String representing the postal code portion of the other address for the contact.

OtherAddressPostOfficeBox returns or sets a String representing the post office box portion of the other address for the contact.

OtherAddressState returns or sets a String representing the state portion of the other address for the contact.

OtherAddressStreet returns or sets a String representing the street portion of the other address for the contact.

OtherFaxNumber returns or sets a String representing the other fax number for the contact.

OtherTelephoneNumber returns or sets a String representing the other telephone number for the contact.

OutlookInternalVersion returns a Long representing the build number of the Outlook application for an Outlook item.

OutlookVersion returns a String indicating the major and minor version number of the Outlook application for an Outlook item.

PagerNumber returns or sets a String representing the pager number for the contact.

PersonalHomePage returns or sets a String representing the URL of the personal webpage for the contact.

PrimaryTelephoneNumber returns or sets a String specifying the primary telephone number for the contact.

Profession returns or sets a String indicating the profession for the contact.

PropertyAccessor returns a PropertyAccessor object that supports creating, getting, setting, and deleting properties of the parent ContactItem object.

RadioTelephoneNumber returns or sets a String indicating the radio telephone number for the contact.

ReferredBy returns or sets a String specifying the referral name entry for the contact.

ReminderOverrideDefault returns or sets a Boolean value that is True if the reminder overrides the default reminder behavior for the item.

ReminderPlaySound returns or sets a Boolean value that is True if the reminder should play a sound when it occurs for this item.

ReminderSet returns or sets a Boolean value that is True if a reminder has been set for this item.

ReminderSoundFile returns or sets a String indicating the path and file name of the sound file to play when the reminder occurs for the Outlook item.

ReminderTime returns or sets a Date indicating the date and time at which the reminder should occur for the specified item.

RTFBody returns or sets a Byte array that represents the body of the Microsoft Outlook item in Rich Text Format. Read/write.

Saved returns a Boolean value that is True if the Outlook item has not been modified since the last save.

SelectedMailingAddress returns or sets an OlMailingAddress constant indicating the type of the mailing address for the contact.

Sensitivity returns or sets a constant in the OlSensitivity enumeration indicating the sensitivity for the Outlook item.

Session returns the NameSpace object for the current session.

Size returns a Long indicating the size (in bytes) of the Outlook item.

Spouse returns or sets a String indicating the spouse/partner name entry for the contact.

Subject returns or sets a String indicating the subject for the Outlook item.

Suffix returns or sets a String indicating the name suffix (such as Jr., III, or Ph.D.) for the specified contact.

TaskCompletedDate returns or sets a Date value that represents the completion date of the task for this ContactItem.

TaskDueDate returns or sets a Date value that represents the due date of the task for this ContactItem.

TaskStartDate returns or sets a Date value that represents the start date of the task for this ContactItem object.

TaskSubject returns or sets a String value that represents the subject of the task for the ContactItem object.

TelexNumber returns or sets a String indicating the telex number for the contact.

Title returns or sets a String indicating the title for the contact.

ToDoTaskOrdinal returns or sets a Date value that represents the ordinal value of the task for the ContactItem.

TTYTDDTelephoneNumber returns or sets a String specifying the TTY/TDD telephone number for the contact.

UnRead returns or sets a Boolean value that is True if the Outlook item has not been opened (read).

User1 returns or sets a String specifying the first field on the Contacts form intended for miscellaneous use for the contact.

User2 returns or sets a String specifying the second field on the Contacts form intended for miscellaneous use for the contact.

User3 returns or sets a String specifying the third field on the Contacts form intended for miscellaneous use for the contact.

User4 returns or sets a String specifying the fourth field on the Contacts form intended for miscellaneous use for the contact.

UserProperties returns the UserProperties collection that represents all the user properties for the Outlook item.

WebPage returns or sets a String indicating the URL of the webpage for the contact.

YomiCompanyName returns or sets a String indicating the Japanese phonetic rendering (yomigana) of the company name for the contact.

YomiFirstName returns or sets a String indicating the Japanese phonetic rendering (yomigana) of the first name for the contact.

YomiLastName returns or sets a String indicating the Japanese phonetic rendering (yomigana) of the last name for the contact.

Actions - Contains a collection of Action objects that represent all the specialized actions that can be executed on an Outlook item.

Attachments - Contains a set of Attachment objects that represent the attachments in an Outlook item.

Conflicts - Contains a collection of Conflict objects that represent all Microsoft Outlook items that are in conflict with a particular Outlook item.

Conversation - Represents a conversation that includes one or more items stored in one or more folders and stores.

Folder - Represents an Outlook folder.

FormDescription - Represents the general properties of an Outlook form.

Inspector - Represents the window in which an Outlook item is displayed.

ItemProperties - A collection of all properties associated with the item.

MailItem - Represents a mail message.

NameSpace - Represents an abstract root object for any data source.

PropertyAccessor - Provides the ability to create, get, set, and delete properties on objects.

UserProperties - Contains UserProperty objects that represent the custom properties of an Outlook item.