Manipulating Rules and Alerts in VBA?

A

Andy Smith

Is there really no way in VBA code to create rules and alerts, change their
parameters, or even examine them? There's no way to enumerate the rules and
dump all their parameters to a text file, for example? Is it really all
hidden away? How then is the Rules Wizard implemented?
 
K

Ken Slovak - [MVP - Outlook]

In Outlook 2007 you can do that, not in earlier versions of Outlook.

The Rules Wizard is implemented to work on the hidden MAPI stuff for rules
that was not expoed to the Outlook object model until Outlook 2007. The new
object model stuff does the same thing. I have yet to see any docs on that
so you'd need to reverse engineer it to figure it out.
 
A

Andy Smith

OK, but I have 2003. It's got to be somewhere, because somehow the Rules and
Alerts Wizard allows you to add/change/delete rules and alerts. But I've
gone into the VBE and searched the Object Browser with hidden member on, and
I've added references to search (Tools/References), and still nothing.

Someone's done it -- see www.outlookrulesmanager.com -- so I want to do it
too.
 
K

Ken Slovak - [MVP - Outlook]

I told you where it is, in hidden MAPI properties that are undocumented.

Feel free to download a MAPI viewer and study the hidden items and
properties and to reverse engineer all that, if you want to do that too.
 

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