Mar 17th, 2005, 08:24 AM
#1
Get Phone# from Outlook...[RESOLVED]
How can I retrieve a person's phone number from the outlook address book
(Global Address List...not Contacts)
Thanks!
Last edited by Static; Mar 18th, 2005 at 09:03 AM .
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Mar 17th, 2005, 12:05 PM
#2
Re: Get Phone# from Outlook...
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
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 17th, 2005, 04:00 PM
#3
Re: Get Phone# from Outlook...
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!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Mar 17th, 2005, 04:03 PM
#4
Re: Get Phone# from Outlook...
Let me see if i can get a demo attached for you.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 17th, 2005, 04:07 PM
#5
Re: Get Phone# from Outlook...
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Mar 17th, 2005, 04:47 PM
#6
Re: Get Phone# from Outlook...
Sorry for the delay, was working on an .NET user control and eating lunch and writting your demo
Just replicate the "ElseIf oFields.ID = " and add yuor other cdo fields that you need.
Attached Files
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Mar 18th, 2005, 09:03 AM
#7
Re: Get Phone# from Outlook...
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!
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width