Why does a script not work as designed?
For some reason this occurs anytime one particular rule is imposed on an e-mail message.  The rule appears to work because it deletes the message but no forward is ever sent and after an error message (Rules in error; the operation failed dialog window), the rule is turned off.  The rule includes a script to forward the message and then as with all rules I create, it stops processing more rules.  How can I get Outlook to use the script and stop turning off the rule?

I have the rule set up for a specific account with specific words in the senders address, to run the script below and then permanently delete the original message and stop processing more rules.

I patterned the rule after the following website suggestion: http://www.slipstick.com/outlook/rules/run-script-rule-change-subject-message/

I of course put in an appropriate e-mail address but everything else is just as you see it below.

Sub Forward(Item As Outlook.MailItem)
Set myForward = Item.Forward
myForward.Recipients.Add "alias@domain.com"
myForward.DeleteAfterSubmit = True
myForward.Send
End Sub

I did some more testing and it turns out the message does not get forwarded but it does get permanently deleted, so that tells me the script is not working.  However, I can do the same thing w/o the script and it works fine, so it is not the forwarding address.
Sorry, I am using Outlook 2010 on Windows 7.
July 7th, 2013 6:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics