Skip to content

Instantly share code, notes, and snippets.

@sio4
Last active August 29, 2015 14:08
MS Outlook Macro for forwarding message to me by single click.
Public Sub ResendToMe()
Dim oMail As Outlook.MailItem
Dim objItem As Object
Dim addr As String
addr = Application.GetNamespace("MAPI").Accounts.Item(1).SmtpAddress
For Each objItem In ActiveExplorer.Selection
Set oMail = objItem.Forward
oMail.Subject = "Delayed - " + oMail.Subject
oMail.Importance = olImportanceHigh
oMail.To = addr
oMail.Send
Set objItem = Nothing
Set oMail = Nothing
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment