How to resolve “Cannot run “” script” Error in Outlook Rule

I was very happy to have resolved “Auto forwarded mail rule” issue (How? You can read here). Everything worked like a charm yesterday, but today morning, it simply would not run!

After re-creating rule, and re-creating procedure, I was presented with error:
Cannot run "" script

Wow! Wonderful error explanation by MS again.

So, what’s the solution?


  1. Create a copy of your VBA code (somewhere in a text file)
  2. Close Outlook
  3. Create a backup of vbaproject.otm file and delete it (it should be in C:\Users\username\AppData\Roaming\Microsoft\Outlook path by default)
  4. Restart outlook
  5. Start VBA (Alt + F11)
  6. Paste your VBA code
  7. Restart Outlook
  8. Create Rule, and assign Run Script

This should work now.

Remember to have a copy of all your codes that are created in vbaproject.otm

Check your macro settings
It should be “Notifications for all macros”

macro settings
macro settings

Save your settings, and restart Outlook

This should work now.



Author: ashishtilak

I am happy go lucky kinda person. Always smiling and making people smile. Luv every thing life has to offer. And, I am a software engg. too, working at a manufacturing company. See more about myself in my blogs.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s