Access to Outlook Messaging Rules

  • Thread starter Thread starter DeepSpaceMan
  • Start date Start date
D

DeepSpaceMan

I am wondering if there is a simple way to programmatically access th
Outlook Messaging Rules using Outlook's VBA?

Background: I have written a set of macros that extend th
functionality of outlook's normal rules as well as make certain thing
more reliable. However, the rule that fires off this extende
functionality gets periodically disabled through a "rules in error
warning. I then have to and re-enable the rule by drilling through th
menus and reactivating the rule. To make matters worse, other than th
rules in error warning window I have no way of knowing that the rul
has been disabled.

I am exploring a number of options to improve the situation:
1) Add a toolbar button to reactivate the disabled rule.
2) Programmatically reactivate the rule either periodically or based o
some other rule that is rarely/never disabled.
3) Ultimately, determine the cause of the rule being found in error an
correct the problem so that it does not happen in the first place.

The first two of these require that I either "sendkeys" my way throug
the menus or find a way to programmatically access the rules. Th
trouble with the latter approach is that I have been unable to find an
information on which object contains the rules and/or the rule enabl
flag. Anyone know how to access or where the Outlook rules are?

BTW, I am running Outlook 2002
 
Not really. There's a limited interface for created very simple rules that
run on the Exchange mailbox, but it can't do anything on your list. The
solution in your case might be to create the functionality totally in VBA
and skip the Rules Wizard completely.
 
I have given up the search since I have still not been able to find the
correct object or function to re enable the rule. For now I am forced
to simply pay closer attention to when the rule seems to not be working
and go check.

On a different note, I was surprised that when you replied to my post,
I did not receive an email notification as indicated by the check box
options. Maybe I don't have things properly configured.

Anyway, thanks again.

DSM
 
Back
Top