• Subject: Re: How do I create a contact using VB?
  • Author: Dmitry Streblechenko
  • Date: 22 Apr 2008
  • References: 1
set Items = Application.GetDefaultFolder(olFolderContacts).Items ... set Contact = Items.Add Contact.Email1Address = "user@domain.com" Contact.FirstName = "First" Contact.LastName = "Last" Contact.Save
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "duckofprey" <duckofprey@discussions.microsoft.com> wrote in message news:2754E4C0-3983-4395-92EC-FF8D41135DB3@microsoft.com...
> Hi, > > I'm sure this is a really simple thing... but I'm very new to VB > programming... > > I'm trying to do something really simple in Outlook 2003. I have a folder > with a large number of messages and I am trying to create a contact for > each > of them. I need to know the syntax for the command that creates a contact > from a message. So, if folder A has three messages in it, I should end up > with three contacts in the Contacts folder, one for each of the messages. > I've been looking around for the command that does that to no avail. Can > you > help? > > Thanks in advance!
22 Apr 2008How do I create a contact using VB?.duckofprey
22 Apr 2008\ Re: How do I create a contact using VB?.Dmitry Streblechenko
All times are in (US) Eastern Daylight Time (GMT -4:00)