PC Review


Reply
Thread Tools Rate Thread

Distribution List

 
 
=?Utf-8?B?SXJlbmU=?=
Guest
Posts: n/a
 
      8th Nov 2005
Hi everybody,

I would like to access a distribution list, then retrieve the company name
and fax number (etc) of the members of the distribution list. Is this
possible? The distribution lists are in a folder on the public folder tree. I
am using Outlook 2003 (vba) and Exchange 2003.

I am thinking of doing a search based on the display field name, can you do
that? All the members don’t have a email address.
How do I access a distribution list via CDO? Maybe that’s the way I should go.



code:

Dim myOlApp As New Outlook.Application
Dim myNameSpace As Outlook.NameSpace
Dim myFolder As Outlook.MAPIFolder
Dim myDistList As Outlook.DistListItem
Dim myFolderItems As Outlook.Items
Dim x As Integer
Dim y As Integer
Dim iCount As Integer
Dim name As String
Dim namedl As String
Dim mypos As Integer

Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNameSpace.Folders("SCA FOLDER").Folders("Distribution
Lists")

Set myDistList = myFolder.Items(cbDistList.Value)
MsgBox myDistList.MemberCount

Set myContactFolder = myNameSpace.Folders("SCA FOLDER").Folders("SCA
Rolodex")
Set myFolderItems = myFolder.Items


For y = 1 To myDistList.MemberCount


namedl = myDistList.GetMember(y).name



Next y


Thanks,

Irene

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add an existing contact to my existing Distribution List wihout having to open the Distribution List? Octavio Microsoft Outlook Contacts 9 9th Dec 2008 11:44 PM
embedded distribution list to new distribution list in outlook Brad Tulin Microsoft Outlook Contacts 2 22nd Oct 2008 02:20 AM
Distribution list that includes other distribution lists. Mike Microsoft Outlook VBA Programming 2 10th Jan 2008 07:41 AM
Adding distribution lists to a master distribution list. OldCoder Microsoft Outlook Form Programming 1 8th Jan 2008 10:01 PM
Adding mutliple distribution lists into a distribution list? =?Utf-8?B?QWJlbA==?= Microsoft Outlook Contacts 2 30th Aug 2006 06:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:58 PM.