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.
Thread starter Similar threads Forum Replies Date
B My sent mail does not appear in the 'Sent Items' until the next day. Have tried turning off my computer and turning it back on but that doe Using Outlook 2
L "Ignore orignial message text in reply or forward" not working - Outlook 2010 - Turning off original Using Outlook 1
1 file download - some files will not open they globe is sending to document forever and does not open the file. I tried turning on and off the pop up Using Outlook 2
E Turning Opportunities in Business Contact Manager into Projects Using Outlook 1
D Automatically log in when turning computer on Using Outlook 2
E Email disapearing... ...most archived email's are turning blank Using Outlook 0
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
J Turn off reminders for appointments that have already happened Using Outlook 1
K Getting default beep when permanently deleting email even though sound is turned off Using Outlook 1
D Received emails show only red X's no images - Email set for HTML. Prevent download of images is OFF Using Outlook 6
W Profile Pane in 2010 Outlook - Can it be turned off or closed? Using Outlook 4
D Is there a way to turn off "group by conversation" by default in OWA Exchange 2010? Using Outlook 2
R Turn off greetings in auto attendant Exchange Server Administration 1
A Can I turn off Word as the email editor in Outlook 2010? Using Outlook 2
J Any way to turn off message count in Deleted Items folder (Outlook 2010)? Using Outlook 1
I Turn off auto- delete Using Outlook 2
W Turn off "Replace text as you type" in Outlook 2010 Using Outlook 2
H how change from working off line to working on line Using Outlook 1
M Accepted Outlook Meeting Notices going into deleted items folder and off the calendar Using Outlook 3
A Cannot Turn off end date in Calendar Printing Assistant Using Outlook 1
K Does anyone know how to turn off auto capitalization in Outlook 2007 running on Windows 7? Using Outlook 6
Similar threads


















































Top