Notify on attachment content

  • Thread starter Thread starter SpaceCamel
  • Start date Start date
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,
 
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.
 
Back
Top