How can I retrieve a person's phone number from the outlook address book
(Global Address List...not Contacts)
Thanks!
Printable View
How can I retrieve a person's phone number from the outlook address book
(Global Address List...not Contacts)
Thanks!
You need to add more CDO code to my example GAL code I pointed you to before.
Its all there, just need to add these CDO constants for phones...
VB Code:
Private CdoPR_BUSINESS_TELEPHONE_NUMBER As Long = &H3A08001E' - Phone Private CdoPR_BUSINESS2_TELEPHONE_NUMBER As Long = &H3A1B001E' - Business 2 Private CdoPR_HOME_TELEPHONE_NUMBER As Long = &H3A09001E' - Home Private CdoPR_HOME2_TELEPHONE_NUMBER As Long = &H3A2F001E' - Home 2 Private CdoPR_MOBILE_TELEPHONE_NUMBER As Long = &H3A1C001E' - Mobile Private CdoPR_PAGER_TELEPHONE_NUMBER As Long = &H3A21001E' - Pager
I have tried and tried to get you code to work
CANT DO IT!!
I need a function that I can pass in a name and get the phone # back!
Let me see if i can get a demo attached for you.
Thanks!
Sorry for the delay, was working on an .NET user control and eating lunch and writting your demo :D
Just replicate the "ElseIf oFields.ID = " and add yuor other cdo fields that you need.
:thumb:
Perfect!
Not sure why I couldnt get you other example to work (It was the same thing!)
But I tweaked this one to get what I need....
Thanks Again!