Isaac
Lifelong Learner
- Local time
- Yesterday, 22:35
- Joined
- Mar 14, 2017
- Messages
- 11,013
Last week I created an Outlook VBA procedure (sub), contained inside the ThisOutlookSession module, that takes one parameter - mi as MailItem
The reason I structured/located it like this, is because that's the guideline to be followed when you want to create an Outlook rule that passes control to a script ("Run a custom script").
Several times last week I tested the script by triggering the rule to run (either by making a matching incoming email come into my Inbox, or by Run Rules Now on Inbox items), and my breakpoints worked just fine. As soon as the item came into my Inbox, bam - my screen would instantaneously change to the VBA project, with the breakpoint line of code highlighted and the code in break mode.
Today this is not happening. Wondering, of course, if my rule + script was even firing, I put a Msgbox as a line of code immediately prior to the breakpoint. Sure enough - the Msgbox displays, but the breakpoint(s) are ignored.
Before I try deleting my local OTM file and re-creating (because I see no indicators of corruption other than this...the code is actually running correctly, it would seem from all other indicators), has anyone seen this before and knows the cause?
The reason I structured/located it like this, is because that's the guideline to be followed when you want to create an Outlook rule that passes control to a script ("Run a custom script").
Several times last week I tested the script by triggering the rule to run (either by making a matching incoming email come into my Inbox, or by Run Rules Now on Inbox items), and my breakpoints worked just fine. As soon as the item came into my Inbox, bam - my screen would instantaneously change to the VBA project, with the breakpoint line of code highlighted and the code in break mode.
Today this is not happening. Wondering, of course, if my rule + script was even firing, I put a Msgbox as a line of code immediately prior to the breakpoint. Sure enough - the Msgbox displays, but the breakpoint(s) are ignored.
Before I try deleting my local OTM file and re-creating (because I see no indicators of corruption other than this...the code is actually running correctly, it would seem from all other indicators), has anyone seen this before and knows the cause?