I have a rule looking at the Subject line for a certain phrase. When an email comes into Outlook the rule starts a macro with the following name:
Sub Check_For_EPDMnumbers(Item As Outlook.MailItem)
I cannot get this routine to run against the email that triggered the rule. It runs against the email sitting at the top of the inbox which is selected. The incoming email does not appear in the Inbox until the macro finishes and even then its not selected. How do I select/parse on an email that does not appear in the Inbox, but triggered the macro?
Sub Check_For_EPDMnumbers(Item As Outlook.MailItem)
I cannot get this routine to run against the email that triggered the rule. It runs against the email sitting at the top of the inbox which is selected. The incoming email does not appear in the Inbox until the macro finishes and even then its not selected. How do I select/parse on an email that does not appear in the Inbox, but triggered the macro?