Outlook 2010, need script for rules & Warnings

Not open for further replies.


Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hello, we got macro's to enable /disable rules in Outlook 2010. What I need is a script that will start the macro if I reveive a mail with a certain subject from a certain sender.

Or if this is not possible to start the macro at a specific time each day.

( complete newbie in programming)

Thanks in advance,



Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Okay I'm newbie off.

I changed some things in my macro, and now it is a script.

Thank you for the reply.




Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Timer based macros are difficult because Outlook doesn't include a timer - definately not a newbie task. You can run macros when things happen -ie, on send, on delete etc. But in your case, you could use a rule that runs a script.

You might be able to convert an existing macro - if not, the script should be able to fire the macro.


Hi, I've still got one problem to solve. As I mentioned we got those macro's to dis- and enable rules and warnings. I now run them by script. Is there a possibilty to en- or disable only one rule.

Underneath is a part of the script...can you please point me in the right direction, need to now where to put the ""CurrentRule.Name"" so that the script will only disable that rule.



- Public Sub EnableAllRules(Item As Outlook.MailItem)

- Dim colRules As Outlook.rules

- Dim oRule As Outlook.Rule

- Dim count As Integer

- Dim ruleList As String

- Set colRules = Application.Session.DefaultStore.GetRules

- For Each oRule In colRules

- oRule.Enabled = True

- oRule.Execute ShowProgress:=True

- count = count + 1

- ruleList = ruleList & vbCrLf & count & ". " & oRule.Name

- Next

Not open for further replies.
Thread starter Similar threads Forum Replies Date
EaglePI Outlook 2010 need help with rules Using Outlook 0
G Need help configuring a PRF for Outlook 2010 and 2013 Using Outlook 0
C Outlook 2010, Need to restrict domain users from installing any sort of a addin in outlook Using Outlook 2
F Outlook 2010 - Need help with a custom field. Using Outlook 3
J Office + Outlook 2013 installed, but I need to install Outlook 2010 Using Outlook 2
W I Need help with vb.net and outlook 2010 Using Outlook 2
R Outlook 2010 Daily Calender need high detail Using Outlook 2
T BCM 2007 to Outlook 2010 with no BCM - need contacts imported BCM (Business Contact Manager) 3
W Outlook 2010: Need to keep restarting outlook to download mail from a MAPI server Using Outlook 4
F Need to copy an email folder to another computer. How can i do this? Outlook 2010 Using Outlook 2
N need to revert back Outlook Express 6, 2010 trial expires tomorrow. Using Outlook 1
M Need help w/ Calendar Events not appearing in Outlook 2010 Using Outlook 1
N Need Help with Outlook 2010 Using Outlook 1
F Need to know the max size pst in outlook 2010 Using Outlook 2
D Need help repairing Outlook 2010. Using Outlook 2
D Need help with word wrap in Outlook 2010. Using Outlook 5
S need phone number to call for help with outlook 2010. Using Outlook 2
P Outlook 2010 Rules: Need a condition for time of day Using Outlook 2
B Need to load my contacts list and information from my office outlook - older version to my home outlook 2010 Using Outlook 1
F My Outlook 2010 Beta Trial ended, I need help getting email and contacts. Using Outlook 5
M Outlook 2010 doesn't download all emails - only a few. Need to keep hitting send/receive Using Outlook 1
W NEED HELP WITH OUTLOOK 2010 Using Outlook 2
C Need to know how to allow a hyperlink to work from and email in outlook 2010. Currently they are blocked and telling me to check with administrator. Using Outlook 3
P need Webmail (hosted by Windstream) to mimic Outlook 2010 Using Outlook 7
T 2010 Outlook multiple IMAPs All named INBOX Need better ID (even OL2003 named Inbox for account name) Using Outlook 3
N Do I need outlook connector for office 2010 as with outlook 2007? Using Outlook.com accounts in Outlook 1
M Need to establish Outlook 2010 as default email program. Using Outlook 7
e_a_g_l_e_p_i I think it may be time to upgrade from Outlook 2010 Using Outlook 3
T Why does outlook 2010 convert only some forum notifications to plain text? Using Outlook 0
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M Outlook 2010 Problem with OutLook 2010 32 bit, after Windows Auto Update Using Outlook 3
M PST import from Outlook 2007 to 2010 - Address Book contacts all in 1 group Using Outlook 4
D Outlook 2010 account setup fails in particular domain Using Outlook 3
B Outlook 2010 is Auto Purging when not configured for that Using Outlook 1
W Outlook 2010 Reading Pane Slows Startup Using Outlook 3
S Outlook 2010 unable to change default font Using Outlook 7
B Outlook 2010 Can not find a certain file in M/S Outlook 2010. Using Outlook 1
Mark Foley Cannot enable add-in in outlook 2010 Using Outlook 0
W Outlook 2010 some sent items marked unread now (was Ok before) Using Outlook 0
RBLampert Updating from Outlook 2010 to Outlook 365 Using Outlook 0
L What are the risks of opening an Outlook 2016 .pst file in Outlook 2010? Using Outlook 4
S Unable to remove rule outlook 2010 Using Outlook 0
N Outlook 2010 Flag blocked for Safe Senders List???? Using Outlook 7
dweller Outlook 2010 Rule Ignores VBA Script Outlook VBA and Custom Forms 2
Mark Foley Unable to subscribe to published calendar in Outlook 2010 Using Outlook 4
K Maximum Categorize Shortcuts In Outlook 2010? Using Outlook 1
E Unable to open Outlook 2010 after adding new email account Using Outlook 4
RBLampert Outlook 2010 no longer (?) shrinks large images Using Outlook 4
N Outlook 2010 will not send nor receive Using Outlook 4
U Outlook 2010 'freezes' before moving emails Using Outlook 2
Similar threads