Adding a memeber to a distribution list

A

Artem

I know this question may belong to "Programming VBA"
group, but I normally get better answers with this group.

How can I add a member to a distribution list.

I can use Members collection to get the names of each
member in a "Test" distribution list.

Dim objAddressList As MAPI.AddressList
Dim objAddrEntry As MAPI.AddressEntry

Set objAddressList = objSession.AddressLists("Global
Address List")
Set objAddrEntry = objAddressList.AddressEntries("Test")


However, I can't add a new member. Add method gives me an
error which might be an access error. AddMember method is
not working for me either.

I'll appreciate any help.

Artem
 
S

Siegfried Weber

Artem said:
I know this question may belong to "Programming VBA"
group, but I normally get better answers with this group.

How can I add a member to a distribution list.

I can use Members collection to get the names of each
member in a "Test" distribution list.

Dim objAddressList As MAPI.AddressList
Dim objAddrEntry As MAPI.AddressEntry

[snip]

CDO 1.21 doesn't support manipulating Exchange global address list entries.
You need to resort to ADSI for that task. Check
http://msdn.microsoft.com/activedirectory
 
A

Artem

Thanks for your reply. I came to the same conclusion
pocking around in Microsoft support sites.
-----Original Message-----
I know this question may belong to "Programming VBA"
group, but I normally get better answers with this group.

How can I add a member to a distribution list.

I can use Members collection to get the names of each
member in a "Test" distribution list.

Dim objAddressList As MAPI.AddressList
Dim objAddrEntry As MAPI.AddressEntry

[snip]

CDO 1.21 doesn't support manipulating Exchange global address list entries.
You need to resort to ADSI for that task. Check
http://msdn.microsoft.com/activedirectory

--
Cheers,

Siegfried Weber

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top