Notify on attachment content

S

SpaceCamel

I receive email with a word attachment every day. I am only interested when
the document contains certain words. Is there a way via VBA to automatically
open the doc, scan for the word and notify if present.
Thanks,
 
K

Ken Slovak - [MVP - Outlook]

You would need to save the attachment to the file system as a document file
and then open it and parse it using the Word object model.

When you manually open an attachment from Outlook that's exactly what
Outlook does. It saves the attachment in a temp folder and opens it based on
what program is registered in Windows to handle that file extension.
 

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