Skip to content

Instantly share code, notes, and snippets.

@sio4
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sio4/629dc943c65eb7e4fdc2 to your computer and use it in GitHub Desktop.
Save sio4/629dc943c65eb7e4fdc2 to your computer and use it in GitHub Desktop.
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