TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Software Troubleshooting

Rules to forward emails during specified time in Outlook 2003

Software Troubleshooting

 
Reply
Thread Tools Display Modes
Unread 12-03-2009, 12:42 PM   #1
Newbie
Thread Starter
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 bwg80 is an unknown quantity at this point


Windows XP


Rules to forward emails during specified time in Outlook 2003

Hi,

I am wondering if anyone has advice to solve an issue I want to fix in Outlook.

I am using Outlook 2003 on an exchange server (work). I have a rule setup that will automatically forward all mail to my BlackBerry email address.

I am wanting to know if there is a way to configure this rule to either:
1) turn on at specific times (i.e. when I leave at the end of the day)

or (preferred method)

2)When I am logged into my account and Outlook is open on my PC it would not forward emails to my BlackBerry. When I close down my PC/Outlook, it would forward the emails to the BlackBerry.

Essentially, I am trying to manage the amount of emails sent to my BB. When I am in the office, I don't want to receive emails on the BB - and would like to make the rule be automatic, rather than having to deactivate it each time Outlook starts up.

Any thoughts?
bwg80 is offline   Reply With Quote
Unread 12-03-2009, 02:03 PM   #2
Webmaster
 
Strider's Avatar
 
Join Date: Nov 2005
Location: Interwebs
Posts: 4,997
Thanks: 624
Thanked 726 Times in 610 Posts
Mood: Cynical
Blog Entries: 6
Rep Power: 9010 Strider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly EminentStrider is extemly Eminent

Intel Nvidia

Windows XP Windows Server 2003 / Windows Server 2008 Windows 7 Windows 8 Linux


Re: Specific Rules in Outlook

If you are using exchange server, I think there is an option to set a forward in the Out of Office Autoreply settings. Just give it a try.

or

If you're keeping your outlook running all the day, you could try a VBA script.

Here is one I found in the web:

This is similar to the one posted in the MS Knowledge Base Article here:

How to create a custom rule in Outlook 2000 by using Visual Basic for Applications

What you need to do is insert this code in the VB Editor, then click File->Save. It should then execute automatically when you next start Outlook.
It will not operate between 7am and 3pm( replace with your office time), also you'll need to put in the forwarding address.


Code:
Public WithEvents myOlItems As Outlook.Items

Public Sub Application_Startup()

   ' Reference the items in the Inbox. Because myOlItems is declared
   ' "WithEvents" the ItemAdd event will fire below.
   Set myOlItems = Outlook.Session.GetDefaultFolder(olFolderInbox).Items

End Sub


Private Sub myOlItems_ItemAdd(ByVal Item As Object)

   ' If it's currently not between 9:00 A.M. and 5:00 P.M.
   If Time() < #7:00:00 AM# Or Time() > #3:00:00 PM# Then

      ' Check to make sure it is an Outlook mail message, otherwise
      ' subsequent code will probably fail depending on what type
      ' of item it is.
      If TypeName(Item) = "MailItem" Then

         ' Forward the item just received
         Set myForward = Item.Forward

         ' Address the message
         myForward.Recipients.Add "myaddress@mydomain.com"

         ' Send it
         myForward.Send

      End If

   End If

End Sub

I haven't tested the code, but will do tomorrow when I'm at the office.

Here is another similar script:

Rule to Direct Mail to folder between 9-5, else to Inbox : folder, outlook

Last edited by Strider; 12-03-2009 at 02:06 PM..
Strider is online now   Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 11:06 AM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional