Paul's Programming Notes     Archive     Feed     Github

Outlook 2010 - Run a Script (Blank)


Apparently a script does not equal a macro in outlook. When you're setting up a rule, you have the option to run a script. However, your macro will not show up in the script menu unless it has (MyMail As MailItem) as an argument. Example:

Sub Save(MyMail As MailItem)

SaveEmailAttachmentsToFolder "AgentReports", "html", "C:\Users\EBRNPAL\Documents\Agent Reports\Saved"

End Sub