Last active
August 29, 2015 14:08
-
-
Save sio4/629dc943c65eb7e4fdc2 to your computer and use it in GitHub Desktop.
MS Outlook Macro for forwarding message to me by single click.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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