VBA find and open an email without looping thru each email in the inbox

Status
Not open for further replies.

Hudas

Member
Outlook version
Outlook 2007
Email Account
Exchange Server
Hi -

I was able to get the unique identifer for an email using the below property. Now, what I'm hoping to achieve is to use this property to search for the email and open it without looping thru each email in the Inbox. As of today there are atleast 14,000 emails in the inbox thats why looping thru each of the email will take too much time.

"PR_SEARCH_KEY", propertyAccessor.BinaryToString(propertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x300B0102"))

Any help is very much appreciated.

Thank you!!!
Hudas
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Get the EntryID instead of the SearchKey, and then use GetItemFromId to retrieve the object. If the item is not stored in your default store, get the StoreID as well.
 
Status
Not open for further replies.
Top