I have some VBA code allowing me to get users from a distribution list and then display info for these users (so from their ID, I get name, phone etc.). I'm now looking for a simpler version which allows me to simply enter the user ID and then directly get the name, phone info from there. Problem is that this piece is too much 'woven into' the distribution-list code; I've been trying to extract the relevant code but am failing... Anyone who has a code snippet for me that might do the job?

It'll probably start with:

Dim objSession As MAPI.Session
On Error GoTo NoMAPI
Set objSession = CreateObject("MAPI.Session")
objSession.Logon ShowDialog:=False, NewSession:=False


Erik Jan