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.:
- Copy email to the clipboard with Outlook VBA
- https://www.experts-exchange.com/questions/24515660/outlook-script-to-copy-email-to-clipboard.html
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!