is there a way to not disable a rule with incoming messages

T

Tom

I have a simple rule called "incoming", defined as

apply this rule after message arrives,
run incoming.ThisOutlookSession.CustomMailMessageRule

the rule itself simply writes some headers into a folder

sometimes something in the incoming message causes an error in the rule and
OL2003 pops up a messagebox that the Incoming rule has an error and I have
to manually access Rules and checkbox again the Rule

how can I stop this? why wouldn't the On Error not take care of that?


Sub CustomMailMessageRule(Item as MailItem)

On Error GoTo Quit


Quit:
End Sub
 
M

Michael Bauer [MVP - Outlook]

Try if this helps:

Sub CustomMailMessageRule(ByVal Item as MailItem)

On Error GoTo Quit


Quit:
End Sub

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: <http://www.vboffice.net/product.html?pub=6&lang=en>



Am Tue, 7 Oct 2008 20:07:00 +0300 schrieb Tom:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top