PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming forwarding unread messages during certain times ?

Reply

forwarding unread messages during certain times ?

 
Thread Tools Rate Thread
Old 09-11-2004, 10:55 AM   #1
=?Utf-8?B?V2Fsc2h5?=
Guest
 
Posts: n/a
Default forwarding unread messages during certain times ?


I dont think there is a way to forward messages automatically or using VB in
outlook without the programme running.. If so could someone please let me
know..

If not what I would like to do is when I log on in the morning (Hours
9:00-17:00) I want all the new messages from the previous day that have been
sent after work to be forwarded to an additional address ??? Is this poss
please ??? or on open send all unread messages to an additional address ???

Thanks for your help

Regards
  Reply With Quote
Old 09-11-2004, 03:27 PM   #2
Michael Bauer
Guest
 
Posts: n/a
Default Re: forwarding unread messages during certain times ?

Hi Walshy,

in Application_Startup you can loop through the folder and check each
item if it is unread, if so forward the item.

--
Viele Grüße
Michael Bauer


"Walshy" <Walshy@discussions.microsoft.com> wrote in message
news:12308BF9-B3E3-4F7D-9944-9F54E3EB9404@microsoft.com...
> I dont think there is a way to forward messages automatically or using

VB in
> outlook without the programme running.. If so could someone please let

me
> know..
>
> If not what I would like to do is when I log on in the morning (Hours
> 9:00-17:00) I want all the new messages from the previous day that

have been
> sent after work to be forwarded to an additional address ??? Is this

poss
> please ??? or on open send all unread messages to an additional

address ???
>
> Thanks for your help
>
> Regards


  Reply With Quote
Old 09-11-2004, 04:14 PM   #3
=?Utf-8?B?V2Fsc2h5?=
Guest
 
Posts: n/a
Default Re: forwarding unread messages during certain times ?

Any chance you could give me the code please ? Im still learning slowly... doh

would be grateful thanks


"Michael Bauer" wrote:

> Hi Walshy,
>
> in Application_Startup you can loop through the folder and check each
> item if it is unread, if so forward the item.
>
> --
> Viele Grüße
> Michael Bauer
>
>
> "Walshy" <Walshy@discussions.microsoft.com> wrote in message
> news:12308BF9-B3E3-4F7D-9944-9F54E3EB9404@microsoft.com...
> > I dont think there is a way to forward messages automatically or using

> VB in
> > outlook without the programme running.. If so could someone please let

> me
> > know..
> >
> > If not what I would like to do is when I log on in the morning (Hours
> > 9:00-17:00) I want all the new messages from the previous day that

> have been
> > sent after work to be forwarded to an additional address ??? Is this

> poss
> > please ??? or on open send all unread messages to an additional

> address ???
> >
> > Thanks for your help
> >
> > Regards

>
>

  Reply With Quote
Old 09-11-2004, 04:41 PM   #4
Michael Bauer
Guest
 
Posts: n/a
Default Re: forwarding unread messages during certain times ?

Yes, of course.

private sub Application_Startup()
dim obj as object
for each obj in application.session.getfolder(olfolderinbox).items
if typeof obj is outlook.mailitem then
set omail=obj
' the rest Eric gave to you
endif
next
end sub


--
Viele Grüße
Michael Bauer


"Walshy" <Walshy@discussions.microsoft.com> wrote in message
news:35A91F6F-18AD-420B-BC7B-31BDE218D7B5@microsoft.com...
> Any chance you could give me the code please ? Im still learning

slowly... doh
>
> would be grateful thanks
>
>
> "Michael Bauer" wrote:
>
> > Hi Walshy,
> >
> > in Application_Startup you can loop through the folder and check

each
> > item if it is unread, if so forward the item.
> >
> > --
> > Viele Grüße
> > Michael Bauer
> >
> >
> > "Walshy" <Walshy@discussions.microsoft.com> wrote in message
> > news:12308BF9-B3E3-4F7D-9944-9F54E3EB9404@microsoft.com...
> > > I dont think there is a way to forward messages automatically or

using
> > VB in
> > > outlook without the programme running.. If so could someone please

let
> > me
> > > know..
> > >
> > > If not what I would like to do is when I log on in the morning

(Hours
> > > 9:00-17:00) I want all the new messages from the previous day that

> > have been
> > > sent after work to be forwarded to an additional address ??? Is

this
> > poss
> > > please ??? or on open send all unread messages to an additional

> > address ???
> > >
> > > Thanks for your help
> > >
> > > Regards

> >
> >


  Reply With Quote
Old 09-11-2004, 05:39 PM   #5
Michael Bauer
Guest
 
Posts: n/a
Default Re: forwarding unread messages during certain times ?

> for each obj in application.session.getfolder(olfolderinbox).items

Sorry, that should be

for each obj in
application.session.GetDefaultFolder(olfolderinbox).items

--
Viele Grüße
Michael Bauer

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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