Turning Rules on and off via VBA

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
 
M

Michael Bauer

Hi Larry,

there´s no way. Perhaps an alternative: Use VBA instead of rules, i.e.
you´d have to code all the rules.
 
L

LaRgAr

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
 
M

Michael Bauer

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.
 

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