<PR_EMAIL_ADDRESS> from AD

U

Ulf Nilsson

Hi,
In my code:
- users use Outlook address book to choose a different person
- the macro collects the following information:
Company
Department
First and last name
Telephone number

I thought I could use the following code to retrieve the email address:
sCodeResult = Application.GetAddress("", "<PR_EMAIL_ADDRESS>", False, 1, , ,
True, True)

Instead, I get a very long string which apparently ends with the user's user
id. I then use this user id to collect the email address from Active
Directory.

My question is:
Where can I find in the Active Directory this long string I receive in
sCodeResult? The reason I ask is because in some instances, the user id is
not correct.

With kind regards,

/ Ulf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top