A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Rules based on number of days



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 2nd 09, 07:11 PM posted to microsoft.public.outlook.program_vba
IpcTrain
external usenet poster
 
Posts: 4
Default Outlook Rules based on number of days

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
Ads
  #2  
Old November 2nd 09, 08:29 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Rules based on number of days

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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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



  #3  
Old November 4th 09, 06:25 PM posted to microsoft.public.outlook.program_vba
IpcTrain
external usenet poster
 
Posts: 4
Default Outlook Rules based on number of days

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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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



.

  #4  
Old November 6th 09, 03:57 AM posted to microsoft.public.outlook.program_vba
IpcTrain
external usenet poster
 
Posts: 4
Default Outlook Rules based on number of days

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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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


.



.

  #5  
Old November 7th 09, 12:29 AM posted to microsoft.public.outlook.program_vba
IpcTrain
external usenet poster
 
Posts: 4
Default Outlook Rules based on number of days

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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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


.



.

  #6  
Old November 9th 09, 11:25 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook Rules based on number of days

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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"IpcTrain" wrote in message
...
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


.



.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of days for recurring appointments in outlook jthiker Outlook - Calandaring 2 August 31st 08 03:37 PM
Determine dates by number of days, "what date is 180 days from now TRLamb Outlook - Calandaring 2 April 19th 07 03:30 PM
Outlook 2003: Rules based on the HTML code Dave Outlook - General Queries 3 March 26th 07 02:34 AM
Can Calendar/Outlook countdown the number of days left in year? David R Outlook - Calandaring 2 July 9th 06 02:51 PM
Outlook should have a function for counting the number of days Bruce McGinn Outlook - Calandaring 0 January 30th 06 01:01 PM


All times are GMT +1. The time now is 03:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.