Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Outlook Address Book Search (No Looping?)

Tags:

excel

vba

outlook

Is there anyway to search Outlook address box for a contact using their email address without any sort of For Loops? There are so many contacts in our Global Contact List and it takes forever to go through the list. Is there no search or find function that can be applied to the contact list.

I am looking to get information like the phone # and office for the user if they are found in the contact list.

All the solutions that I have found involve looping through the contact list. http://www.ozgrid.com/forum/showthread.php?t=76588

https://msdn.microsoft.com/en-us/library/office/ff869721.aspx

like image 989
M. Marzouk Avatar asked Oct 16 '25 11:10

M. Marzouk


1 Answers

Use Namespace.CreateRecipient / Recipient.Resolve to resolve the name (or address) in the address book. Even if you pass an SMTP address, it will be resolved to a GAL user (if there is a match).

like image 90
Dmitry Streblechenko Avatar answered Oct 18 '25 06:10

Dmitry Streblechenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!