Dist List Listbox

  • Thread starter Thread starter gp
  • Start date Start date
G

gp

Hello,

I am working on a new contact form in Outlook 2007 and want to create
a new way to add and subtract contacts from distribution lists. I
would like to populate a listbox with the current distribution lists
and be able to select and deselect them thereby assigning or removing
a contact from those lists (unless you can think of a better way).

I am basically new to VB and related languages, but understand that I
need to use the DistListItem, GetMember, and AddMember objects. The
basic feel makes sense as well: populate the listbox with current
distlists, "select" member's affiliations, loop back and "reselect"
member's affiliations. I can understand and adapt code, but I don't
really know how to write it. Any help?

Thanks!

And Happy New Year!
-gp
 
Go to www.outlookcode.com and search on "distribution list", you'll see lots
of code samples for manipulating distribution lists with code.

Be aware that DL's aren't the most robust things and most of the time most
of us try to avoid them. They also capture the contact's state at the time
they are added to the DL, any changes to the contact subsequent to that time
will require removing the contact from the DL and then adding in the changed
contact item.
 
Back
Top