What I'm trying to do is programatically remove attachments from Outlook messages. When someone copies and pastes part of a spreadsheet for example, Outlook treats that as an attachment and its called an olOLE. I haven't found any methods that will save these attachments out to a directory.
For Each oAttach In oMail.Attachments
If oAttach.Type = olOLE Then 'olOLE = 6
oAttach.SaveAs "C:\temp\" & oAttach.FileName
End If
Next Jon Hawkins
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.