msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excel Contacts to Outlook: Need the field names!!

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Program VBA
Author Message
Mathew



Joined: 15 Aug 2007
Posts: 2

PostPosted: Wed Feb 27, 2008 12:44 pm    Post subject: Excel Contacts to Outlook: Need the field names!! Reply with quote

I found an awesome approach to moving contacts in Excel to Outlook!!
http://www.dailydoseofexcel.com/archives/2004/11/11/parse-names-with-outlook/#comment-30943

We manage our contacts in Excel as it is easer for the staff. I’ve used
some of this code to directly import contacts from Excel to Outlook. It
works great!!

Question: Where do you find the field names for Outlook, i.e. FirstName
please see the code below. This example below is practically the only one I
can find and/or get to work. Strangely, I can’t find the field name (s) for
Business Phone (s) or business fax (s) to work. I’ve tried a couple
different variants, but I just can’t get it on trial and error approach. Is
there any location were these field names are published? I've looked in
Outlook, converted contacts in Outlook to Excel but even this dosn't work!! I
have to add some additional fields to the contacts we create. Thanks for any
help!!
..FirstName = “Dick”
..LastName = “Kusleika”
..MobileTelephoneNumber = “(402) 555-1212″
..Email1Address = “dick@dicks-clicks.com”
..HomeAddressStreet = “111 S 1st”
..HomeAddressCity = “Omaha”
..HomeAddressState = “NE”
..HomeAddressPostalCode = “68100″
..SelectedMailingAddress = olHome
..Categories = “Business, Personal”

Archived from group: microsoft>public>outlook>program_vba
Back to top
View user's profile Send private message
Sue Mosher [MVP-Outlook]



Joined: 12 Aug 2007
Posts: 656

PostPosted: Wed Feb 27, 2008 5:03 pm    Post subject: Re: Excel Contacts to Outlook: Need the field names!! Reply with quote

You look in the object browser -- F2 in VBA -- at the ContactItem object from the Outlook library.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Mathew" wrote in message @microsoft.com...
>I found an awesome approach to moving contacts in Excel to Outlook!!
> http://www.dailydoseofexcel.com/archives/2004/11/11/parse-names-with-outlook/#comment-30943
>
> We manage our contacts in Excel as it is easer for the staff. I’ve used
> some of this code to directly import contacts from Excel to Outlook. It
> works great!!
>
> Question: Where do you find the field names for Outlook, i.e. FirstName
> please see the code below. This example below is practically the only one I
> can find and/or get to work. Strangely, I can’t find the field name (s) for
> Business Phone (s) or business fax (s) to work. I’ve tried a couple
> different variants, but I just can’t get it on trial and error approach. Is
> there any location were these field names are published? I've looked in
> Outlook, converted contacts in Outlook to Excel but even this dosn't work!! I
> have to add some additional fields to the contacts we create. Thanks for any
> help!!
> .FirstName = “Dick”
> .LastName = “Kusleika”
> .MobileTelephoneNumber = “(402) 555-1212″
> .Email1Address = “dick@dicks-clicks.com”
> .HomeAddressStreet = “111 S 1st”
> .HomeAddressCity = “Omaha”
> .HomeAddressState = “NE”
> .HomeAddressPostalCode = “68100″
> .SelectedMailingAddress = olHome
> .Categories = “Business, Personal”
>
Back to top
View user's profile Send private message
Mathew



Joined: 15 Aug 2007
Posts: 2

PostPosted: Wed Feb 27, 2008 3:39 pm    Post subject: Re: Excel Contacts to Outlook: Need the field names!! Reply with quote

Sue: You are a Gem! Thanks for the help!!

"Sue Mosher [MVP-Outlook]" wrote:

> You look in the object browser -- F2 in VBA -- at the ContactItem object from the Outlook library.
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "Mathew" wrote in message @microsoft.com...
> >I found an awesome approach to moving contacts in Excel to Outlook!!
> > http://www.dailydoseofexcel.com/archives/2004/11/11/parse-names-with-outlook/#comment-30943
> >
> > We manage our contacts in Excel as it is easer for the staff. I’ve used
> > some of this code to directly import contacts from Excel to Outlook. It
> > works great!!
> >
> > Question: Where do you find the field names for Outlook, i.e. FirstName
> > please see the code below. This example below is practically the only one I
> > can find and/or get to work. Strangely, I can’t find the field name (s) for
> > Business Phone (s) or business fax (s) to work. I’ve tried a couple
> > different variants, but I just can’t get it on trial and error approach. Is
> > there any location were these field names are published? I've looked in
> > Outlook, converted contacts in Outlook to Excel but even this dosn't work!! I
> > have to add some additional fields to the contacts we create. Thanks for any
> > help!!
> > .FirstName = “Dick”
> > .LastName = “Kusleika”
> > .MobileTelephoneNumber = “(402) 555-1212″
> > .Email1Address = “dick@dicks-clicks.com”
> > .HomeAddressStreet = “111 S 1st”
> > .HomeAddressCity = “Omaha”
> > .HomeAddressState = “NE”
> > .HomeAddressPostalCode = “68100″
> > .SelectedMailingAddress = olHome
> > .Categories = “Business, Personal”
> >
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Get Contacts from Outlook to Excel Combo Box I am new to VBA, so any help on this would greatly be appriecated. I am currently working on a project in Excel VBA. Is there a way to search through Microsoft Outlooks Contacts with a Combo Box I have located on a Worksheet and/of UserForm? For example

How to get appointments of another users and their names? Hi, I made a VBA code that picks up appointments from my Outlook (2003) calendar and writes them (date, time, subject, location, my user name) in columns of an html table. How could I get also appointments of my workmates and their names to the same table

Migration from CDO 1.2 to OOM2007: field/property handling?? Hi, I have to migrate an existing application (VB6) to Outlook 2007. Currently, it uses CDO 1.21. From now on OOM 2007 is to be used. The essence of the code: Const As String = "IPM.Task" Const CdoPropSetID2 As String =

Error automating outlook from .net Hi I created a setup file of my vb.net app and remotely installed it on a client's machine. The app bombs at start-up with the error; Error while initializing application: Retrieving the COM class factory for component with CLSID

Resize Issue in outlook My custom compose form have Message control on the left side & my activex control on the right side (alongwith To, CC on the upper part). I have set "Resize with layout" property of Message control to unchecked. I want to resize my activex control to the
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Program VBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group