【发布时间】:2014-05-10 15:08:58
【问题描述】:
是否可以使用 VBA 添加/删除 Exchange 分发列表的成员?
我可以使用以下代码循环访问成员,但似乎无法添加新成员。
Dim olApp As New Outlook.Application 'Start instance of Outlook
Dim olNS As Outlook.NameSpace 'Reference the Outlook namespace and use MAPI
Set olNS = olApp.GetNamespace("MAPI") 'Open the AddressList you want to use
Dim olAddressList As Outlook.AddressList
Set olAddressList = olNS.AddressLists("Global Address List")
olAddressList.AddressEntries.Item(DLList).Members.Item (1).name
【问题讨论】:
标签: vba outlook exchange-server