Save Attachment through VB code

J

JJ

How can I save an email attachment through the use of VB code? I would like
to save it to a file on my desktop. But, I can't seem to get things to work.
Does anyone have something likes this set up? ....is it possible?
 
S

Sue Mosher [MVP-Outlook]

Take a look at the Attachment.SaveAsFile method. Most of the problems I see
are related to non-allowed characters in the name used to save the file.
 
J

JJ

My code saves excel attachments, but instead of saving a .txt attachment, it
saves the whole email as an outlook object.....???????
 
S

Sue Mosher [MVP-Outlook]

Show a sufficient code snippet.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top