This tutorial will explain how to schedule outlook 2007 rules to run at specific time
1. Open Notepad.
2. Copy the code in the snippet and paste it into Notepad. Edit the code as needed. We placed comments where things can/need to change.
'Change the following three constants as desired
Const SHOW_PROGRESS = True
Const INCLUDE_SUBFOLDERS = False
Const UNREAD_MSGS_ONLY = 2
Dim olkApp, olkSes, olkFolder, olkRule
Set olkApp = CreateObject("Outlook.Application")
Set olkSes = olkApp.GetNameSpace("MAPI")
'Change Outlook on hte next line to the name of your mail profile'
Set olkFolder = olkSes.GetDefaultFolder(6)
For Each olkRule In olkSes.DefaultStore.GetRules
olkRule.Execute SHOW_PROGRESS, olkFolder, INCLUDE_SUBFOLDERS, UNREAD_MSGS_ONLY
Set olkRule = Nothing
Set olkFolder = Nothing
Set olkSes = Nothing
Set olkApp = Nothing
4. Save the file with a .vbs extension.
5. Test the script by double-clicking it. All of your rules should execute.
6. Create a scheduled task using Windows Task Scheduler.
7. Set the task to run this script.
You still need the original code to turn rules off when you leave and turn them back on when you return to the office. If the rules are not turned off, then they will continue executing when you don’t wnat them to.
Incoming search terms:
- run outlook rules on a schedule (70)
- schedule outlook rules (40)
- outlook rules schedule (23)
- schedule outlook rules to run (22)
- outlook schedule rules (19)
- outlook 2010 schedule rules (17)
- run outlook rule scheduled time (16)
- run outlook rules on schedule (15)
- outlook rule schedule (13)
- run outlook rules at specific time (12)