VBA to search email subject field for a certain string

Status
Not open for further replies.

skyfox

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
I have searched and searched but have not been able to find something on how to carry out a search using VBA to look for a certain word in the subject field of an email. It seems that this might be a common question asked with tons of answers, but all my searches are coming out empty. Perhaps I am not asking the correct question. Can someone point me in the right direction on how to accomplish this?

I am wanting to do this within outlook. (i.e. By pressing a Command button that is on a user form that is invoked when outlook is running) I am only looking for help with proper syntax on how to trigger a search on the subject field. I want to search thru all of the emails in the active inbox.

Thanks.
 

skyfox

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Diane & Michael,

Thank you both for the pointers and getting me going in the right direction.

Cheers!
 
Status
Not open for further replies.
Top