How do I automatically view the text in an attachment?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to create a macro to open an attachment, and copy & paste the
text into the body of the email for searchability.

Does anyone know where i can find the code for a macro like that?

Thanks
Jenn
 
You have to save the attachment to the file system and open it from there.
See http://www.slovaktech.com/code_samples.htm#StripAttachments for code to
save the attachments from selected email items for the first part. Then you
need to access the saved file and open it. I'd probably use Windows
scripting's FileSystemObject for that and open the file as a Stream object
to read it.
 
Back
Top