Manipulating Rules and Alerts in VBA?

Status
Not open for further replies.
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?

Andy Smith

Senior Systems Analyst

Standard & Poor''s, NYC
 
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.

"Andy Smith" <AndySmith> wrote in message

news:DE2B31A1-574B-43B3-A775-6872194DE637@microsoft.com...
> 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?

> > Andy Smith
> Senior Systems Analyst
> Standard & Poor''s, NYC
>
 
Since Outlook 2007 you can access Rules.

Best regards

Michael Bauer

Am Tue, 22 Dec 2009 07:00:01 -0800 schrieb 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?
 
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.

Andy Smith

Senior Systems Analyst

Standard & Poor''s, NYC

"Andy Smith" wrote:


> 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?

> > Andy Smith
> Senior Systems Analyst
> Standard & Poor''s, NYC
>
 
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.

"Andy Smith" <AndySmith> wrote in message

news:E71B5861-C87B-45B1-A988-774B609A11D6@microsoft.com...
> 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.

> > Andy Smith
> Senior Systems Analyst
> Standard & Poor''s, NYC

> "Andy Smith" wrote:
>
> > 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?
>

>> > > Andy Smith
> > Senior Systems Analyst
> > Standard & Poor''s, NYC
> >
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
R How to simplify rules Using Outlook 2
J Recover server side rules from OST/PST without access to the server Using Outlook 2
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
N Outlook 2021 'Run Script" Rules? Outlook VBA and Custom Forms 4
K Multiple Rules on Single Email Using Outlook 2
Aussie Rules Run a Script on an Incoming Email OK and then the Email reverts Outlook VBA and Custom Forms 0
R rules not working - done troubleshooting Using Outlook 0
P Outlook 2013 All imported Mail Rules in error when imported into new profile Using Outlook 5
A Apply Selected Emails to outlook rules and Run Rules Using Outlook 5
Wayne Outlook locks up when opening "Manage Rules & Alerts" Using Outlook 7
T "Words In Recipient's Address" Rule Causes Outlook To Stop Processing Rules Using Outlook 3
Retired Geek Junk Folder Clean Up Rules Exchange Server Administration 1
B Setting rules Using Outlook 1
A rules not working Using Outlook 2
M Rules and autoreply Using Outlook 1
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
O How to recover rules after switch from POP3 to IMAP Using Outlook 2
N Focussed Inbox Rules Failing Using Outlook 5
N Copies of emails from rules have wrong from: account Using Outlook 0
L Office 365 cloud based rules Using Outlook 1
K Outlook Rules: Move a Copy Using Outlook 4
CWM030 Rules disappearing in OL 2016? ( Yes, I searched before posting) Using Outlook 7
R When rules lose track of "specified folder" Using Outlook 6
I Outlook 2013 Rules - (client only) Using Outlook.com accounts in Outlook 1
B When I add more search strings to RULES, it is not processing them Using Outlook 3
O Having rules run on old mails noved to inbox Outlook VBA and Custom Forms 8
A rules (flags) not working Using Outlook 7
K Lost Rules. Assistant accesses my mailbox. Disappeared Using Outlook 0
soadfan Outlook rules look up display name only Using Outlook 4
S Send email via SMTP - use transport rules to add to senders inbox (then rule to move to sent items Exchange Server Administration 1
Justo Horrillo Issue with rules in Outlook 2010 Using Outlook 4
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
R When rules are working but invisible and unmanageable Using Outlook 2
P Transport Agent or Rules/Connectors Exchange Server Administration 1
A Rules - how to determine if all conditions in rule are true or false Outlook VBA and Custom Forms 5
E Outlook 2010 need help with rules Using Outlook 0
O Rules and Alerts for New Messages BEFORE sending Using Outlook 2
D Outlook Rules Using Outlook 1
Diane Poremsky Autoaccept a Meeting Request using Rules Using Outlook 2
K adding more rules to 'different domains check' macro Outlook VBA and Custom Forms 2
Gunny NFOhiway Outlook PST file and Rules Using Outlook 1
M Outlook 2016 Rules Not Working Automatically Using Outlook 5
Diane Poremsky Rules & Alerts Dialog Won't Open Using Outlook 1
soadfan Enable all rules from toolbar button? Outlook VBA and Custom Forms 3
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
P Log of Rules that ran Outlook VBA and Custom Forms 3
Q Outlook 2016\365 export specific rules to import in another system Exchange Server Administration 1
S Rules to auto redirect Using Outlook 5
P Recover / Extract Rules from standalone PST file creating RWZ file Using Outlook 2
T Client-side rules not working, but no error Using Outlook 1

Similar threads

Back
Top