ContactItem Object

Microsoft Outlook Visual Basic

ContactItem Object

         
Multiple objects ContactItem
Multiple objects

Represents a contact in a contacts folder. A contact can represent any person with whom you have any personal or professional contact.

Using the ContactItem Object

Use the CreateItem method to create a ContactItem object that represents a new contact.

The following Visual Basic for Applications example returns a new contact.

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olContactItem)

The following VBScript example returns a new contact.

Set myItem = Application.CreateItem(olContactItem)

Use Items(index), where index is the index number of a contact or a value used to match the default property of a contact, to return a single ContactItem object from a Contacts folder.