Turning Rules on and off via VBA

  • Thread starter Thread starter LaRgAr
  • Start date Start date
L

LaRgAr

Hi -
Is it possible to write some code to turn rules on and off via a button
on a toolbar? Preferably, I'd like to specify the rules to toggle
(don't need to do it on the fly, I can hard code the rules I want to
toggle) but I'd also accept all on or all off.

The reason I need to do this is that I have redirect software for my
Treo smartphone installed that only redirects the Inbox. All of my
important mail is routed to folders by way of rules so turning them on
and off via the Rules Wizard is a hassle.

Thanks,
Larry
 
Hi Larry,

there´s no way. Perhaps an alternative: Use VBA instead of rules, i.e.
you´d have to code all the rules.
 
Michael -
Thanks for the quick reply. I was hoping that wouldn't be the case
thought! I'll tinker with writing some of these rules in VBA. Any
online resources or samples you could recommend?

Regards,
Larry
 
LaRgAr said:
Michael -
Thanks for the quick reply. I was hoping that wouldn't be the case
thought! I'll tinker with writing some of these rules in VBA. Any
online resources or samples you could recommend?

Regards,
Larry

Great resources are, among others, your VBA helpfile and
www.outlookcode.com.
 
Back
Top