I keep running into the following error message whenever I try running an Outlook rule that runs a script when triggered by particular words in the subject line:
I am able to select my macro during the rule creation stage, and have successfully run the macro as a stand-alone script rather than connected to a rule. I am able to successfully run other scripts from Outlook rules. I have deleted and re-created the rule. I have restarted Outlook. I have pasted the code into a new module. I have even created the following test script to run from a rule:
The script "" doesn't exist or is invalid.
I am able to select my macro during the rule creation stage, and have successfully run the macro as a stand-alone script rather than connected to a rule. I am able to successfully run other scripts from Outlook rules. I have deleted and re-created the rule. I have restarted Outlook. I have pasted the code into a new module. I have even created the following test script to run from a rule:
Sub PrintInvoice(Message As Outlook.MailItem)
MsgBox "I work!"
End Sub
and the rule still doesn't work! At this point I'm assuming something is wrong with my Outlook or VBA setup. Any ideas on how to troubleshoot this problem?MsgBox "I work!"
End Sub