Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Create an Outlook 2007 AddIn that can select multiple folders?

Status
Not open for further replies.

dchen0318

Programmer
Jul 11, 2011
1
CA
Hi All,

I am developing an Outlook 2007 Add-In using Visual Studio 2010, C# for my company. The goal is to be able to select multiple contact folders, and each folder has multiple contacts within.

In the example below,
I have two contact folders: Agency-WEST and Agency-EAST. Both contact folders have multiple contact items within.

Right now, if I want to send an e-mail to all people in my both contact folders, I have to go to the Agency-WEST folder first, select all contact items, then click the "New Message to Contact button" to have their email addresses appear in the To section of the Message window.

However, if I just use my mouse to click/select the Agency-WEST contact folder, the "New Message to Contact" won't be visible to click.

What I would like to do in my AddIn is to first be able to select/click one contact folder, then click the "New Message to Contact" button, then all contact items' email addresses inside that contact folder will be displayed onto the To section of the Message window.

After that, the second step is to be able to select more than one contact folders by holding down the Ctrl button, then click the "New Message to Contact" button, then all selected contact folders' e-mail addresses will be displayed onto the To section of the Message window.

From my understanding is that I cannot select more than 1 folder. Is there any alternatives to work this around?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top