Link to home
Start Free TrialLog in
Avatar of chethann
chethann

asked on

Rule or VBA Code to auto forward an email from Specific person to another email id received during a specific time

Hi,

I am looking for a Rule or VBA code which would enable Auto forward all the emails received during a specific frame (05:01AM CST to 04:29 AM CST). The email received from that specific email id must be forwarded to another email with the message eg: "we are unable to process the order as we have received the order outside our coverage cycle".

I am new to vba coding so it would be helpful if you provide steps to activate the code.

Thank You.

Regards
Chethan
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chethann
chethann

ASKER

I tried with the above solution but it doesn't seem to work. I changed the email address and the timings but it does not work.
You need to restart Outlook, or at least run the Application_Startup macro, to activate the event trigger. Then drop a mail into the inbox to see if it does something. For testing, it is always a good start to set a breakpoint (F9) on a line inside the called sub, e.g. in line 14 above, and then single-step thru the code, viewing variables if required.