I would like to protect myself from unreasonable demands during my work day. One of those is telling people that I will not respond to any emails before 3pm.

I'd like to set up a rule in outlook that replies to all emails before 3pm with a specific message. I'd like this to be done every day, no matter the date.

How do I set this up?

I've scoured Google best I can so far, and I think, based on a Exchange forum, that a script might be needed for this. But what I found so far was only server side scripts. I need something on my own machine.

references: http://www.telnetport25.com/2012/01/exchange-2010-out-of-office-fun-with-set-mailboxautoreplyconfiguration/


  • 1
    Which version of MS office do you have? – avirk Dec 13 '12 at 11:46
  • the latest, 2010 – Avik Dec 13 '12 at 12:15
  • Check out this article it.cornell.edu/services/outlook/howto/email/out-of-office.cfm – avirk Dec 13 '12 at 12:50
  • @avirk "time range" in that article is referring to a date and time, not a time per for every day. I've scoured google best I can so far, I think a script might be needed for this. – Avik Dec 13 '12 at 12:55
  • Just got the "popular question badge" But not a single upvote :( – Avik Jul 10 '13 at 8:37

Where your name is in the To box.

Public Sub Check_ReceivedTime(newMail As Outlook.MailItem)

Dim obj As Object
Dim ReceivedHour As Integer
Dim newReply As MailItem
Dim msg As String

ReceivedHour = Hour(newMail.ReceivedTime)

If ReceivedHour < 15 Then

    Set newReply = newMail.reply
    msg = "I will respond some time after 3 pm."

    CreateMail newReply.To, msg


    Debug.Print "After 3. Do not sent the automated reply."

End If

Set newReply = Nothing

End Sub

Private Sub CreateMail(ReplyAddress As String, msg As String)

Dim objMail As Outlook.MailItem

Set objMail = CreateItem(olMailItem)

With objMail
    .To = ReplyAddress
    .Body = msg

    ' or
    ' .Send

End With

End Sub

Edit: Paste the code into the VBA editor. The code will be availabel in "run a script".

See also http://www.slipstick.com/outlook/rules/outlooks-rules-and-alerts-run-a-script/

  • 1
    Can you explain little bit how will it get work? – avirk Dec 14 '12 at 2:24
  • Thank you, I'll mark the answer correct when I confirm it works :) – Avik Dec 16 '12 at 14:22

It's not the intention to shamelessly advertise my application, but I have developed an online application where I try to solve this exact problem.

The tool can help you with the following situations:

  • recurring out of office's for specific days / hours
  • plan upfront on or more one-off out of office's
  • manage multiple out of office messages

More info, https://www.notin.today


note: I am always looking for people who want to use this tool and give feedback. Hands-on feedback so that I can further improve the tool. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.