Outlook rule stops running VBScript after reboot

I have a VBScript that creates a task using an incoming email in outlook. There's a rule for incoming mail that triggers the script if the email contains a certain word in the subject, and moves it to a "Processed" folder to show that it's been handled.

Occasionally the VBScript portion of this setup stops working. The outlook rule still recognizes the emails and moves them to the "Processed" folder, but the VBScript does nothing. Things that seem to break it are closing and opening outlook...but only about half the time. The one thing that breaks it reliably is logging off that account and logging back on.

The way i fix it is by removing or renaming the VbaProject.OTM file, opening the VBScript editor through outlook, and pasting in the same old code i had previously. The script will then work great until the next reboot/logoff/random disruption.

What's breaking my code!? It's driving me nuts because my company relies on this script, and it dies without warning every once in a while, keeping us all on our toes. Any ideas are welcomed...thanks.

I once again tried renaming things, in all different orders, and all different ways without any success. Logging out still kills the script.

The problem is not with getting the rule to run in outlook, but with where the rule triggers the script. It never fails to move things to a processed folder, it only fails to actually run the code it's supposed to.

The behavior you've described is deinitely strange. I do see some potential problems with the code you posted, one in particular that might explain what's going on. Before I advance a theory though I'd like to try a revised version of the code to see if I'm even close to having this figured out. Can you try this version out and let me know if it makes any difference?

MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application. Its compatibility with Microsoft applications like Exch…

This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory.
NOTE: For Outlook 2016 and 2013 perform the exact same steps.
Open a new email: Click the New email button in Outlook.
Start typing the address: …

As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?