Rayne
asked on
outlook extract from active directory
Hello
I need help in this outlook vba piece. I have a contact group in outlook that has several individual contact emails . How can loop through each contact in the contact group and extract out the name, position of the individual?
Thank you
I need help in this outlook vba piece. I have a contact group in outlook that has several individual contact emails . How can loop through each contact in the contact group and extract out the name, position of the individual?
Thank you
ASKER
Hello BlueDevilFan,
I created the contact group locally in my outlook new items >> more items >> contact group,
i didn't create a distribution list within the outlook server - will that work then?
I created the contact group locally in my outlook new items >> more items >> contact group,
i didn't create a distribution list within the outlook server - will that work then?
ASKER
and i want to loop through contact group...
No, the code I posted is for a distribution list in Active Directory, which is what you'd asked for. I can put together the code for a dist list in Outlook if that's what you need. I don't understand your last comment, "loop through contact group". Do you mean you want to loop through the members of the group? If so, what do you want to do with each member?
ASKER
its not a distribution list in outlook server but i created one contact group in my outlook like attached image....
contactGroup.bmp
contactGroup.bmp
ASKER
i need to get the name, title/position of the contacts
ASKER
Do you mean you want to loop through the members of the group? I
YES
YES
What do you want to do with the name and title of each contact? Display it on screen, write it to a file, ...?
ASKER
Hello BluedevilFan,
Sorry for the delay, some personal issues happened.
so for each member, get his title/position and name and put it in a excel sheet
Sorry for the delay, some personal issues happened.
so for each member, get his title/position and name and put it in a excel sheet
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you Bluedevilfan :)
You're welcome!
Assuming that you have Outlook 2007 or later, then this should do it.
Open in new window
You'll need to pass the address of the list you want to process to the sub.