A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption library - Add distribution list as member to another distributionlist



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 2nd 06, 11:23 PM posted to microsoft.public.outlook
Tommy Ipsen
external usenet poster
 
Posts: 2
Default Redemption library - Add distribution list as member to another distributionlist

Hi all

I'm using the Redemption.dll in Outlook VBA and trying to add a
distribution list as a member of another distribution list!

Code example:

Dim objMasterDL As Redemption.RDODistListItem
Dim objSlaveDL As Redemption.RDODistListItem

Set objSlaveDL = someMAPIFolder.Items.Add(olDistributionListItem)
'Code to add members to objSlaveDL, name it, save it (and close it?)
Set objMasterDL = someMAPIFolder.Items.Add(olDistributionListItem)

How should I add objSlaveDL as a member to objMasterDL? I tried
resolving the objSlaveDL against the AddressList corresponding to
SomeMAPIFolder in order to use the resulting AddressEntry as input for
the AddMember method. Unfortunately I received an ambiguous name error
trying to resolve the name of the objSlaveDL - either because several
DL's exists with almost similar names or because I'm running in Cached
Exchange Mode?

The distribution lists I'm working with are the following:

"BB - Medlemmer" (Master DL)
"BB - Medlemmer - del 1 af 4" (Slave DL 1)
"BB - Medlemmer - del 2 af 4" (Slave DL 2)
"BB - Medlemmer - del 3 af 4" (Slave DL 3)
"BB - Medlemmer - del 4 af 4" (Slave DL 4)

When trying to resolve for example "BB - Medlemmer - del 4 af 4" against
the addresslist corresponding to the containing MAPI-Folder I receive
the "ambiguous..." error but if I delete all the other Slave DL's the
one left resolves without problems... :-/

I need to create the primary distribution list programmatically in a
public folder and the members are contacts from another public folder -
possibly several hundred contacts! Because of Exchange/Outlooks problem
with handling large distribution lists I create smaller distribution
lists which should the be added to the master list in the end! I'm using
Outlook 2003 and to my knowledge we're running an Exchange 2000 server!

Hope you can help me out since I'm rather stuck right now...

Cheers, Tommy Ipsen
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i receive mail want to add all recipients to a distribution list toonpish3 Outlook - Using Contacts 2 June 5th 06 12:25 PM
Adding a Member (existing in GAL) to a Public Distribution List in K.N.Ganesh. Outlook and VBA 1 May 23rd 06 09:25 PM
Add / Create member(s) to a distriubutionlist Kristof Ternoey Outlook and VBA 4 February 13th 06 09:37 PM
Outlook 2003 Distribution List doesn't show member names JMTP Outlook - Using Contacts 0 February 1st 06 05:16 PM
How do I add new entries to a distribution list? tzeep Outlook - Using Contacts 7 January 26th 06 09:38 PM


All times are GMT +1. The time now is 05:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.