View Single Post
  #2  
Old May 15th 06, 01:32 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default open attachments

You must save the attachment to the file system. You can use FileSystemObject methods to delete the file. See http://www.outlookcode.com/d/code/copyatts.htm for sample code.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Karsten Jung" wrote in message oups.com...
Hello together!

Perhaps you can help me.

var oAttachs = objMessage.Attachments;
var oAttach = oAttachs.Item(iAttach);

oAttach is the attachment I want to open.

Can I open it directly or do I have to save the attachment to the
FileSystem?

When the attachment must be saved to fileSystem, how can I remove the
file after e.g. word was closed?

I should not fill the disc ;-)

thanks, Karsten

Ads