View Single Post
  #3  
Old February 25th 08, 12:20 PM posted to microsoft.public.outlook.program_vba
Question Boy
external usenet poster
 
Posts: 20
Default Determine EntryID

Michael,

That is exactly my question. How can one do that, detrmine the EntryID of a
newly created contact item?

After the .save how can I determine and pass the EntryID for the newly
created contact item to a variable?

Thank you,

QB




"Michael Bauer [MVP - Outlook]" wrote:



You don't set the ID yourself. Call the item's Save method, then yo can read
the EntryID created by Outlook.

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Sun, 24 Feb 2008 17:00:00 -0800 schrieb Question Boy:

Hello,

i am creating a new contact using vba

************
Set objFolder = myNameSpace.GetDefaultFolder(olFolderContacts)
Set objItems = objFolder.Items

With objItems.Add 'Create new Contact Entry
.FirstName = ""
.LastName = ""
.HomeAddressStreet = "
'...
.Save
***********

How do I determine the EntryID of the newly created contact at it creation
so I can store it?

Thank you,

QB
End With


Ads