Turning on/off Rules from VBA

Status
Not open for further replies.

mallycat

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Hi

I have created a rule in Outlook 2010/13. It acts on my outbox and delays the send of all emails by 1 minute. This gives me time to realise when I have made a mistake, and go and change the email. This works well for me, and I change 'outbound' emails a hand full of times per week.

The trouble is that sometimes I want to send an email immediately (eg I am talking on the phone to someone, and want to send them a document or a link). In this case I have to turn off the rule, send the email and then turn the rule back on.

What I really would like is a way to do this automatically. One way would be a "send immediately" macro that turns off the rule, then back on afterwards. Maybe another way would be a simple "toggle" rule macro that allows me to turn the rule on/off more easily.

Can anyone suggest something that might work, along with some code stubs to get me started?
 

mallycat

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Thanks Diane - I can work with this. I have tried to find such code in the past but unsuccessfully.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Turning a rule on with a text message & message alerts Outlook VBA and Custom Forms 5
M Where is the setting to *turn off* open calendar in a new window? Using Outlook 3
L How do you turn off Outlook contacts "hints" popup Using Outlook 2
N How to turn off autocorrect in contact notepads Using Outlook 2
A remove or turn off outlook.com contact folder from outlook 2016 Using Outlook 4
N Wishlist Opening Outlook where we left off Outlook Wishlist 0
P Appointment times are off by one minute Using Outlook 1
B Auto name checking upon Tab or Click off To field(s) Using Outlook 19
J Leave mail on server when Outlook off Using Outlook 0
P printing weekly calendar in Outlook 2013 cuts days of week off Using Outlook 1
A Stop Rule (not turn off) that Delays Outgoing Items Outlook VBA and Custom Forms 1
Dan Badur How can I keep indenting OFF on replies in Outlook 2013? Using Outlook 1
V Open Outlook Calendar and Tasks views with Folder pane off Using Outlook 2
R Email Send & Receive Turned off but sends automatically anyway Using Outlook 1
A Emails automatically forwarding but no rule to turn off Using Outlook 2
R How to turn OFF the Reminders for shared calendar events but not off personal Using Outlook 1
S categories are being cut off after selecting from category pop up form Using Outlook 3
B email getting cut off Using Outlook 9
V Using Outlook 2013 Off Line Using Outlook 5
M My Outlook notifications are off by 25 minutes Using Outlook 0
J OL2010 Create a new task while off line Exchange Server Administration 3
B Looking for an add-in or a way to send automatic replies based off a list Using Outlook 2
T Calendar sync off by 1 hour - outlook 2010 / icloud 2.1 / ipad Using Outlook 2
J Outlook 2010 - Use off line Using Outlook 2
Fozzie Bear Outlook 2010 wont remember Exchange Credentials on log off /shutdown of Win7 Exchange Server Administration 2
B Fonts cut off when composing new email on outlook 2007 Using Outlook 1
J CPA cuts off left edge of printed Calendar. Ex. January the J is cut off. Calendar Printing Assistant 11
O How to turn off the prompt to permanently delete messages upon exiting? Using Outlook 2
P Time Off Request - not posting to public folder once approved Using Outlook 0
B Recurring meeting times off by several hours Exchange Server Administration 5
T BCM Install fails Both w Off. Pro 2010 Beta & on reinstall Off.Pro BCM (Business Contact Manager) 5
F Can I write a macro that triggers off an Outlook alert Outlook VBA and Custom Forms 1
W Outlook Desktop alert, notification, popup - turn off programattic Outlook VBA and Custom Forms 1
N Create one-off that does send winmail.dat Outlook VBA and Custom Forms 3
E Turn application visibility off Outlook VBA and Custom Forms 2
R How do I turn off the Business Contact Manager startup in Outlook BCM (Business Contact Manager) 1
S Reminder (Off / On) Link With Reminder Data/Time Outlook VBA and Custom Forms 3
H How turn off outlook security warning dialog box from outlook Outlook VBA and Custom Forms 1
M How do I find Calendar events that have been put off with Snooze? Using Outlook 2
T the default position of the find dialogue is appearing off the scr Outlook VBA and Custom Forms 4
B How can I print my calendar without cutting off the words on the Calendar Printing Assistant 1
T Printing off responses to Meeting Requests Outlook VBA and Custom Forms 10
V turn off shared calender reminders/leaving personal calender remin Using Outlook 7
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

Similar threads

Top