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
> > >
>> >
>> >> .
> > >>
>
>
>> .
> >