piper1935
piper1935

Reputation: 109

Copy Contents of Outlook Attachment

I have an Outlook VBA macro that copies the contents of an email and saves them as a word document, using

activeMessage.GetInspector().WordEditor.Range.FormattedText.Copy

I'd like to change this to copy the contents of the email attachments instead. Is there a simple way to do this?

Upvotes: 1

Views: 388

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

No, you will need to save the attachment as a file (Attachment.SaveAsFile), open it (depends on the file type), then access its data.

Upvotes: 1

Related Questions