Update Outlook Contact Item Using VBA

M

Michael Ryle

I use the following code to create an outlook contact item:

Dim olApp As Outlook.Application
Dim olNewContact As Outlook.ContactItem

Set olApp = CreateObject("Outlook.Application")
Set olNewContact = olApp.CreateItem(olContactItem)

With olNewContact

... set data fields ...

.Save

End With

Does anyone know how can I use VBA to UPDATE a contact item once it's been created? Thanks.
 
S

Sue Mosher [MVP-Outlook]

Depending on your application, you may be able to return a specific item using the Namespace.GetItemFromID or MAPIFolder.Items.Find method. You then set property values and save, the same as witih a new item.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top