Discussion Locked

Outlook Address Book in VB

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can someone please tell me how to display the Address Book dialog box using the Outlook object model in Visual Basic. I have an application that automatically sends an email to an address stored in a resource table. But, I want to allow the users to send a CC copy to anyone in the address book.

I can resolve names, find the first name, the last name, the next name, etc. But for the life of me, I have not been able to figure out how to display the dialog box to let the user select the namefrom the address book.

8 replies

by alesandrial

According to "Professional CDO Programming" (WROX Press 1999) you simply need to call the AddressBook method of the CDO Session object.

Sample: objSession.AddressBook

by dale.johnson

I know how to use the AddressBook using CDO. I need to know how to use it using the Outlook Object Model. These are two totally seperate items.

by alesandrial

My apologies - I misread your original question, but it looks like you're out of luck unless you use CDO. According to Thomas Rizzo, author of 'Programming Outlook and Exchange' (Microsoft Press 1999), "Outlook does not support displaying the address book and returning the individual that the user selected, but CDO does."

It looks like your only option is to extend the functionality of the Outlook Object Model with CDO.

by alesandrial

Would it be too much to ask you to rate my last answer and to award the promised points if it was acceptable? Thanks.

This discussion is closed to new replies.