Outlook rule only active certain times of day

Status
Not open for further replies.

etabush

Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Any way to create an Outlook Rule that is only active between certain hours of the day?

I would like to create an auto delete rule for messages with subject containing certain words. However, i only want it to be active between the hours of 10pm-4am.

Is there any way to accomplish this??
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I got it tested... works fine. I switched it to use the task subject, not a category.
 

etabush

Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Im a little confused with getting it to run through a task. Once i get the VBS working i can just schedule the script via Kaseya.

I'm still getting an error when executing the VBS. You have 2 vbs posted so not sure which i should use but both giving an error.

Line: 1

Char: 45

Error: Expected ')'

Code: 800A03EE
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Does line 1 end with a ) ?

Private Sub Application_Reminder(ByVal Item As Object) <==

If you have a method to trigger the macro (or want to use a button and kick it off yourself) you just need the two subs that turn it off and on, you don't need the application_reminder one.

Sub Enable_Run_Rule() & Sub Disable_Run_Rule ()
 

etabush

Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Is is possible to run this as a stand alone VBS (i got an error)? not through an outlook session
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
if you reference the outlook object model in the vbs, it might work (some, but not all, commands work in vbs). You need to open outlook from the script (or check and see if it's open) then run the commands.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
T "Words In Recipient's Address" Rule Causes Outlook To Stop Processing Rules Using Outlook 3
R Outlook Autoforward rule do not work for NDR messages Using Outlook 1
R Setup autofoward rule on a particular folder in Outlook Using Outlook 0
S Unable to remove rule outlook 2010 Using Outlook 0
O Outlook 2016 This rule will only run when you check your email in Outlook.... Using Outlook 4
N Outlook Email Rule execution through shortcut keys (VBA codes) Using Outlook 1
dweller Outlook 2010 Rule Ignores VBA Script Outlook VBA and Custom Forms 2
S Adding new Exchange (2016) rule very slow down Microsoft Outlook Exchange Server Administration 0
B Outlook rule run a Script doesn't work Outlook VBA and Custom Forms 1
A Forward Outlook Email by Filtering using Macro Rule Outlook VBA and Custom Forms 44
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
Liza Creating a rule in outlook to filter messages Using Outlook 0
T Create Rule For Secondary E-Mail Address In Outlook 2016 Using Outlook 4
A Creating an outlook rule to forward an email with a specific message Using Outlook 1
S using script rule to save attachments on arrival Outlook 2010 Outlook VBA and Custom Forms 9
I outlook rule keywords based on list Using Outlook 0
M Outlook 2016 Desktop - Automatic Rule Processing Using Outlook 3
I Create custom Outlook 2013 Rule in Office 365 Outlook VBA and Custom Forms 5
K Outlook moves sender's mail, but there is no rule Using Outlook 0
J Outlook creating unwanted rule on its own Using Outlook 1
F Outlook rule, specific words, not specific words Using Outlook 1
R Outlook 2013 VB rule to auto save attachments with different file types Outlook VBA and Custom Forms 5
Mary B Outlook 2013: Rule for copying new email to folder & marking that copy as read Using Outlook 1
Gary Brown Outlook 2013 VBA to run a rule Outlook VBA and Custom Forms 13
J Outlook Rule - Create Link in Forwarding Message Outlook VBA and Custom Forms 2
B Outlook 2000 Rule to Move txt msg Not Working if size >24KB Using Outlook 3
G Creating an Outlook Rule using Internet Header time Using Outlook 1
N rule to move sent mail to the deleted folder in outlook Using Outlook 4
M Outlook Rule To Redirect Mail - Script to overcome lack of cc's & others Using Outlook 0
S Outlook VBA rule script to process both MailItem and MeetingItem Using Outlook 0
J outlook rule doesn't run automatically Using Outlook 0
K Implementing an AND logic rule in OUTLOOK Using Outlook 1
C Outlook rule moves e-mail to a deleted folder Using Outlook 1
W Outlook sent to "person" rule excluding cc Using Outlook 2
D Private messages not forwarding by rule? Outlook 2007 Using Outlook 1
F Outlook Rule using message header not working Using Outlook 2
M Outlook 2003 rule to detect a blank category Using Outlook 1
R Outlook 2010 rule not recognizing inbound meeting requests Using Outlook 4
1 Outlook's Rules Wizard; No 'Forward using a specific template' Rule Using Outlook 4
williamlambton Setting up a Rule for Hotmail using Outlook 2007. Using Outlook 1
O Outlook 2010: Rule to move sent emails doesn't start if I Use "Send To" command on a file on desktop Using Outlook 3
B Outlook 2010: Rule not working Using Outlook 4
V Outlook rule: to me but not through distribution list Using Outlook 1
F Missing rule in Outlook 2010 that was in Outlook 2003 Using Outlook 3
J Create or Import a Outlook Rule through C# code. Outlook VBA and Custom Forms 2
G Outlook rule check for messages not received Outlook VBA and Custom Forms 2
D Create a macro in Outlook to run a rule Outlook VBA and Custom Forms 32
N How to create hidden rule in outlook 2007 Outlook VBA and Custom Forms 3
T forcing a rule when opening outlook via code Outlook VBA and Custom Forms 1
N Outlook alert/memo/rule when an email does not arrive Using Outlook 3
Similar threads


















































Top