Outlook Rules based on number of days

Status
Not open for further replies.
I

IpcTrain

How to create a rule in Outlook XP or 2003; after 30 days in the inbox send

to a folder?

Hope You can help.

Thank You,

IpcTrain
 
D

Dmitry Streblechenko

Youy would have to create your own script that decides which messages

exactly satisfy your criteria (30 days in the inbox?) and performs teh

appropriate action.

There is no built-in rule for that.

Dmitry Streblechenko (MVP)

-

"IpcTrain" <IpcTrain> wrote in message

news:E05A7E61-B3D6-4EFB-9821-57D1995C3B73@microsoft.com...
> How to create a rule in Outlook XP or 2003; after 30 days in the inbox
> send
> to a folder?
> > Hope You can help.
> Thank You,
> IpcTrain
 
I

IpcTrain

Dmitry,

What would the script look like. Assume 30 day from receive date or last

review date.

Hope You can help.

Thank You,

IpcTrain

"Dmitry Streblechenko" wrote:


> Youy would have to create your own script that decides which messages
> exactly satisfy your criteria (30 days in the inbox?) and performs teh
> appropriate action.
> There is no built-in rule for that.

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "IpcTrain" <IpcTrain> wrote in message
> news:E05A7E61-B3D6-4EFB-9821-57D1995C3B73@microsoft.com...
> > How to create a rule in Outlook XP or 2003; after 30 days in the inbox
> > send
> > to a folder?
> > > > Hope You can help.
> > Thank You,
> > IpcTrain


> .
>
 
D

Dmitry Streblechenko

Something likethefollowing (off the tp of my head):

strQuery = "[ReceivedTime] > ""10-01-2009"" and [ReceivedTime] <

""10-31-2009"" "

set InboxItems = Application.Session.GetDefaultFolder(olFolderInbox).Items

set Msg = InboxItems.Find(strQuery)

While Not (Msg Is Nothing)

Debug.Print Msg.Subject

set Msg = InboxItems.FindNext

Wend

Dmitry Streblechenko (MVP)

-

"IpcTrain" <IpcTrain> wrote in message

news:34E0A1A7-78FF-4B20-9BB7-A9E5E5BAAAA4@microsoft.com...
> Dmitry,

> What would the script look like. Assume 30 day from receive date or last
> review date.
> > Hope You can help.
> Thank You,
> IpcTrain

> "Dmitry Streblechenko" wrote:
>
> > Youy would have to create your own script that decides which messages
> > exactly satisfy your criteria (30 days in the inbox?) and performs teh
> > appropriate action.
> > There is no built-in rule for that.
>

>> > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "IpcTrain" <IpcTrain> wrote in message
> > news:E05A7E61-B3D6-4EFB-9821-57D1995C3B73@microsoft.com...
> > > How to create a rule in Outlook XP or 2003; after 30 days in the inbox
> > > send
> > > to a folder?
> > > > > > Hope You can help.
> > > Thank You,
> > > IpcTrain

>

>
>> .
> >
 
I

IpcTrain

Thank you.

Hope You can help.

Thank You,

IpcTrain

"Dmitry Streblechenko" wrote:


> Something likethefollowing (off the tp of my head):

> strQuery = "[ReceivedTime] > ""10-01-2009"" and [ReceivedTime] <
> ""10-31-2009"" "
> set InboxItems = Application.Session.GetDefaultFolder(olFolderInbox).Items
> set Msg = InboxItems.Find(strQuery)
> While Not (Msg Is Nothing)
> Debug.Print Msg.Subject
> set Msg = InboxItems.FindNext
> Wend

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "IpcTrain" <IpcTrain> wrote in message
> news:34E0A1A7-78FF-4B20-9BB7-A9E5E5BAAAA4@microsoft.com...
> > Dmitry,
> > What would the script look like. Assume 30 day from receive date or last
> > review date.
> > > > Hope You can help.
> > Thank You,
> > IpcTrain
> > "Dmitry Streblechenko" wrote:
> >
> >> Youy would have to create your own script that decides which messages
> >> exactly satisfy your criteria (30 days in the inbox?) and performs teh
> >> appropriate action.
> >> There is no built-in rule for that.
> >
> >> > >> Dmitry Streblechenko (MVP)
> >>

> >>

> >>

> >> -
> >> "IpcTrain" <IpcTrain> wrote in message
> >> news:E05A7E61-B3D6-4EFB-9821-57D1995C3B73@microsoft.com...
> >> > How to create a rule in Outlook XP or 2003; after 30 days in the inbox
> >> > send
> >> > to a folder?
> >> > > >> > Hope You can help.
> >> > Thank You,
> >> > IpcTrain
> >
> >
> >> .
> >>


> .
>
 
I

IpcTrain

How do you place the code in the Rules of outlook? Can the code be generic

so 30 days from date received. This way I do not have to change dates in the

code for each month.

Hope You can help.

Thank You,

IpcTrain

"Dmitry Streblechenko" wrote:


> Something likethefollowing (off the tp of my head):

> strQuery = "[ReceivedTime] > ""10-01-2009"" and [ReceivedTime] <
> ""10-31-2009"" "
> set InboxItems = Application.Session.GetDefaultFolder(olFolderInbox).Items
> set Msg = InboxItems.Find(strQuery)
> While Not (Msg Is Nothing)
> Debug.Print Msg.Subject
> set Msg = InboxItems.FindNext
> Wend

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "IpcTrain" <IpcTrain> wrote in message
> news:34E0A1A7-78FF-4B20-9BB7-A9E5E5BAAAA4@microsoft.com...
> > Dmitry,
> > What would the script look like. Assume 30 day from receive date or last
> > review date.
> > > > Hope You can help.
> > Thank You,
> > IpcTrain
> > "Dmitry Streblechenko" wrote:
> >
> >> Youy would have to create your own script that decides which messages
> >> exactly satisfy your criteria (30 days in the inbox?) and performs teh
> >> appropriate action.
> >> There is no built-in rule for that.
> >
> >> > >> Dmitry Streblechenko (MVP)
> >>

> >>

> >>

> >> -
> >> "IpcTrain" <IpcTrain> wrote in message
> >> news:E05A7E61-B3D6-4EFB-9821-57D1995C3B73@microsoft.com...
> >> > How to create a rule in Outlook XP or 2003; after 30 days in the inbox
> >> > send
> >> > to a folder?
> >> > > >> > Hope You can help.
> >> > Thank You,
> >> > IpcTrain
> >
> >
> >> .
> >>


> .
>
 
D

Dmitry Streblechenko

1. What would trigger that rule? There are no timer events in Outlook,

unless you create your own add-in that uses a timer to run some code at a

predetermined interval. Or you can write your own script (a standalobe VBS

file woudl do) that you could run whenever you want.

2. You would need to use Now or Date intrinsic functions to base the

condition on th current date

Dmitry Streblechenko (MVP)

-

"IpcTrain" <IpcTrain> wrote in message

news:C500978B-08BB-4707-B600-34F126D7F847@microsoft.com...
> How do you place the code in the Rules of outlook? Can the code be
> generic
> so 30 days from date received. This way I do not have to change dates in
> the
> code for each month.

> > Hope You can help.
> Thank You,
> IpcTrain

> "Dmitry Streblechenko" wrote:
>
> > Something likethefollowing (off the tp of my head):
>

>> strQuery = "[ReceivedTime] > ""10-01-2009"" and [ReceivedTime] <
> > ""10-31-2009"" "
> > set InboxItems =
> > Application.Session.GetDefaultFolder(olFolderInbox).Items
> > set Msg = InboxItems.Find(strQuery)
> > While Not (Msg Is Nothing)
> > Debug.Print Msg.Subject
> > set Msg = InboxItems.FindNext
> > Wend
>

>
>> > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "IpcTrain" <IpcTrain> wrote in message
> > news:34E0A1A7-78FF-4B20-9BB7-A9E5E5BAAAA4@microsoft.com...
> > > Dmitry,
> >> > What would the script look like. Assume 30 day from receive date or
> > > last
> > > review date.
> > > > > > Hope You can help.
> > > Thank You,
> > > IpcTrain
> >>> > "Dmitry Streblechenko" wrote:
> >> >> Youy would have to create your own script that decides which messages
> > >> exactly satisfy your criteria (30 days in the inbox?) and performs teh
> > >> appropriate action.
> > >> There is no built-in rule for that.
> > >
>> >> > > >> Dmitry Streblechenko (MVP)
> > >>

> > >>

> > >>

> > >> -
> > >> "IpcTrain" <IpcTrain> wrote in message
> > >> news:E05A7E61-B3D6-4EFB-9821-57D1995C3B73@microsoft.com...
> > >> > How to create a rule in Outlook XP or 2003; after 30 days in the
> > >> > inbox
> > >> > send
> > >> > to a folder?
> > >> > > > >> > Hope You can help.
> > >> > Thank You,
> > >> > IpcTrain
> > >
>> >
>> >> .
> > >>

>

>
>> .
> >
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
N Outlook 2021 'Run Script" Rules? Outlook VBA and Custom Forms 4
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
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
K Outlook Rules: Move a Copy Using Outlook 4
soadfan Outlook rules look up display name only Using Outlook 4
Justo Horrillo Issue with rules in Outlook 2010 Using Outlook 4
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
E Outlook 2010 need help with rules Using Outlook 0
D Outlook Rules Using Outlook 1
Gunny NFOhiway Outlook PST file and Rules Using Outlook 1
M Outlook 2016 Rules Not Working Automatically Using Outlook 5
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
Q Outlook 2016\365 export specific rules to import in another system Exchange Server Administration 1
A outlook 2007 how to chcek all rules ? Outlook VBA and Custom Forms 2
J Outlook Rules not show Master Category List Using Outlook.com accounts in Outlook 4
R Outlook rules Using Outlook 3
M Outlook 2007 IMAP Account Rules Issues Using Outlook 3
D Outlook Rules - How to use a variable in the subject condition Outlook VBA and Custom Forms 9
A Setting RULES with more than one condition in MS OUTLOOK Using Outlook 6
J Outlook rules and alternatives Using Outlook 2
Rupert Dragwater How to delete old rules and create new in Outlook 2013 Using Outlook 12
H Using Outlook Rules to search for NewLines in message body Using Outlook 1
R Outlook - alternatives to Rules / Junk? Using Outlook 5
R Outlook 2013 - IMAP & Rules Broken Using Outlook 1
D Trying to repair Outlook rules Using Outlook 5
J Outlook 2007 Rules & VBA: How to run a script on a report message (ReportItem) Using Outlook 14
V Importing Rules in Outlook 2013 Using Outlook 2
T Adding text to forwarding rules in Outlook 2010 Using Outlook 1
T Adding tex to forwarding rules in Outlook 2010 Exchange Server Administration 1
D Outlook 2010 Rules: fwd meeting invitation results in winmail.dat not .ics Using Outlook 4
M Outlook 2010 IMAP rules occasionaly stop working Using Outlook 4
kburrows Smartphones, Outlook and Rules Using Outlook 0
W Fwd Outlook incomming messages to usb port after Rules and alerts applied Using Outlook 0
P Outlook 2013 rules -- not working reliably -- moving messages to wrong boxes Using Outlook 0
J Outlook 2013 - Rules and Alerts for POP3/IMAP Accounts Using Outlook 1
S Outlook 2010: Message Rules come back next time I restart Outlook Using Outlook 0
D Unable to transfer rules from one Outlook computer to another Using Outlook 5
R Outlook 2013 Rules not working Using Outlook 1
S Outlook 2013 - All rules simply delete the email Using Outlook 1
M Rules in Outlook 2013 Exchange Server Administration 9
K Outlook Cached Mode - can't create rules to move email to another mailbox Using Outlook 2
J Outlook rules help Using Outlook 1
D Outlook Rules Using Outlook 1
J Outlook - rules and Alerts Using Outlook 1
V Outlook 2010 non working rules Using Outlook 1
M Rules & Alerts not appearing in the File Tab (outlook 2010) Using Outlook 1
S Outlook 2010, need script for rules & Warnings Using Outlook 3
J Outlook - rules and Alerts - from group Using Outlook 3

Similar threads

Top