Last active
August 29, 2015 14:15
-
-
Save litan1106/e78774653f62a2781370 to your computer and use it in GitHub Desktop.
PrintMail:Outlook
This file contains hidden or 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
Sub RunAScriptRuleRoutine(MyMail As MailItem) | |
Dim strID As String | |
Dim olNS As Outlook.NameSpace | |
Dim msg As Outlook.MailItem | |
strID = MyMail.EntryID | |
Set olNS = Application.GetNamespace("MAPI") | |
Set msg = olNS.GetItemFromID(strID) | |
' do stuff with msg, e.g. | |
MsgBox msg.HTMLBody | |
Set msg = Nothing | |
Set olNS = Nothing | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment