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?

1st:

  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

2nd:
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.

ENJOY!!

RESOLVED: Send To -> Mail Recipient opens an Outlook plain text message (Outlook 2007)

I often use Right Click -> Send To -> Mail Recipient on a file to send it as an mail attachment. But the problem with this approach is that the message opens in Text mode. Means you cannot format text/insert table/graphics etc by default. [You need to select HTML/Rich Text from Option ribbon tab].

So, here is the solution:

Find the SendTo folder
For Windows 7 it is C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo
For Windows XP, just type SendTo in Run

Create a Shortcut there with reference to Outlook.exe
(Which probably would be under “C:\Program Files\Microsoft Office\OFFICE12\OUTLOOK.EXE”)

Append /c ipm.note /a in the shortcut, so that the complete shortcut will look like:
“C:\Program Files\Microsoft Office\OFFICE12\OUTLOOK.EXE” /c ipm.note /a

Name the shortcut whatever you like.

And done! ENJOY!!

For detailed explanation, visit this.