Outlook
--
Questions
--
Followers
Top Experts
I need it to contain the FROM/TO /Date information.
Currently my manual way to do this is to REPLY to the email, select the part I want, and CTRL-C.
There's gotta be code that will get all this.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
What version of Outlook?
Outlook 2003 and 2007.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
From:
Sent:
To:
Subj:
<body>

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Sub CopyMsg2Clipboard()
Dim olkMsg As Object, strData As String, intStart As Integer
Select Case TypeName(Outlook.ActiveWindow)
Case "Explorer"
Set olkMsg = Outlook.Application.ActiveExplorer.Selection(1)
Case "Inspector"
Set olkMsg = Outlook.ActiveInspector.CurrentItem
End Select
If TypeName(olkMsg) = "Nothing" Then
MsgBox "This macro only works with emails.", vbExclamation + vbOKOnly, "Copy Message to Clipboard"
Else
intStart = InStr(1, olkMsg.Body, "From:") - 1
strData = "From: " & olkMsg.SenderName & vbCrLf _
& "Sent: " & olkMsg.SentOn & vbCrLf _
& "To: " & olkMsg.To & vbCrLf _
& "Subj: " & olkMsg.Subject & vbCrLf & vbCrLf _
& Mid(olkMsg.Body, 1, intStart)
ClipBoard_SetData strData
End If
Set olkMsg = Nothing
End Sub

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Outlook
--
Questions
--
Followers
Top Experts
Microsoft Outlook is a personal information manager from Microsoft, available as a part of the Microsoft Office suite. Although often used mainly as an email application, it also includes a calendar, task manager, contact manager, note-taker, journal, and web browser.