forwarding unread messages during certain times ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Hi Walshy,

in Application_Startup you can loop through the folder and check each
item if it is unread, if so forward the item.
 
Any chance you could give me the code please ? Im still learning slowly... doh

would be grateful thanks
 
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
 
for each obj in application.session.getfolder(olfolderinbox).items

Sorry, that should be

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