Accessing info from Address Book

How am i able to access and retrieve addresses in the Address Book of Outlook programmatically through an external application?
Basically it is just like pressing Outlook 'To' field, a select
names window pops up.
JeromZAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JeromZAuthor Commented:
Adjusted points to 100
0
Neo_mvpsCommented:
Can you expand furter?  Did you just want to display the Address Book to your users or where you thinking of just scanning a particular address book and picking up certain addresses for use?
0
JeromZAuthor Commented:
Edited text of question.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Neo_mvpsCommented:
Outlook doesn't expose and "AddressBook" method.  You need to resort to using Collaboration Data Objects (CDO).

Basically the code looks something like:

Dim oSession as MAPI.Session
Dim oRecColl as MAPI.Recipients

Set oSession = CreateObject("MAPI.Session)
oSession.Logon "Profile", "Password", False, False

Set oRecColl = oSession.AddressBook


Outlook 97 does not come with CDO.
Outlook 98 installs CDO by default.
Outlook 2K comes w/ it but has to be installed under a custom install.

CDO distribution is available at www.microsoft.com/exchange and you can find excellent reference material at www.cdolive.com.
0
JeromZAuthor Commented:
Thanks!
I am going to try it out!
0
Neo_mvpsCommented:
Not a problem and let me know how it works out. ;)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JeromZAuthor Commented:
It works with a little modification
as i just do it in Outlook Script Editor.
Can get the same dialog box but not able to send.
0
Neo_mvpsCommented:
Try something like Item.Send if you are using VBScript from within a form.
0
JeromZAuthor Commented:
It does not work....only sends from the To:...Bcc:...and Cc:...fields but not own created ones.
0
JeromZAuthor Commented:
It does not work....only sends from the To:...Bcc:...and Cc:...fields but not own created ones.
0
Neo_mvpsCommented:
That would be right because the messaging subsystem would go nuts if it had to figure out which field to read from.  As a work around.  You can copy a value from your custom field to an Item.To field.  Only other thing I can think of is to interogate the the Recipient collection object returned and plug in the email address for each item to Item.To.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.