Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2004

Tip: Looking for answers? Try searching our database.

How do I automatically view the text in an attachment?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jenn M - 29 Nov 2004 13:55 GMT
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
Ken Slovak - [MVP - Outlook] - 29 Nov 2004 14:11 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I would like to create a macro to open an attachment, and copy & paste the
> text into the body of the email for searchability.
[quoted text clipped - 3 lines]
> Thanks
> Jenn
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.