Outlook 2010 VBA to search a keyword in attachment and move to a folder

Suleiman

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi,

I am new to VBA and was trying to get outlook to search for a key word within an attachment then move the email to a folder if it found it. Normally I use the CTR E function and do attachment:'keyword' search this will show me all the emails that have that keyword (attachments I am searching are .txt) then I delete them. I figured there has to be a simpler way like creating a rule to run a script or a macro.

Any help would be greatly appreciated.
 
Top