Bob
Bob

Reputation: 13

copy email object to outlook clipboard

when having email Messages open in Outlook 2013 (in reading mode) that I'd like to Forward to somebody else as an embedded attachment, i always have to find the original mail again before being able to attach it in a new or existing message or appointment or ...

Much like the 'Forward as attachment'-button under 'home > message > respond > more > Forward as attachment' I'd like to copy the current mail to the clipboard. This way i can add the object to any new Messages/appointments/etc.

Other Forum entries only copy the Body of the mail e.g.:

I'd like to have the complete object in though.

is there anybody that can help me finding the correct Expression for that? i figured if i Change the "M.HTMLBody" in the below code to something like object I'd be golden.

Sub Test()
    Dim M As MailItem, Buf As MSForms.DataObject

    Set M = ActiveExplorer().Selection.item(1)
    Set Buf = New MSForms.DataObject
    Buf.SetText M.HTMLBody
    Buf.PutInClipboard

End Sub

many thanks in advance!

Upvotes: 0

Views: 1361

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

Why would you want to copy anything to the clipboard? You can attach any message to another message by calling MailItem.Attachments.Add.

Upvotes: -1

Related Questions