Sub ConvertSelectedMailtoTask() Dim objTask As Outlook.TaskItem Dim objMail As Outlook.MailItem Set objTask = Application.CreateItem(olTaskItem) Set objMail = Application.ActiveExplorer.Selection.Item(1) With objTask .subject = objMail.subject .StartDate = objMail.ReceivedTime .Body = objMail.Body 'Add the message as an attachment .Attachments.Add objMail .Save End With Set objTask = Nothing Set objMail = Nothing End Sub
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter