
adding a selected contact to a distribution list
The ActiveExplorer.Selection object will give you a collection, similar to an Items collection, of all selected items.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
Quote:
> Hi everyone
> I want to add an selected (not opened, just selected)
> contact to one of the distribution lists by code.
> What I already have:
> A window opens that displays the available distribution-
> lists in a dropdown.
> But now, since I have found only how to use the contact
> item by the index-number "myfolder.items(index)" I'd like
> to know, how to get the indexnumber of the selected
> contact-item.
> Thanx for help
> Daniel