• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Receive a Reminder When a Message Doesn't Arrive?

Slipstick Systems

› Outlook › Rules, Filters & Views › Receive a Reminder When a Message Doesn’t Arrive?

Last reviewed on February 2, 2024     27 Comments

A security update disabled the Run a script option in the rules wizard in Outlook 2010 and all newer Outlook versions. See Run-a-Script Rules Missing in Outlook for more information and the registry key to fix restore it.

I’m often asked how to be reminded if a message does not arrive within a specified time. This a popular request by administrators and others who receive routine status messages. When a status message doesn't arrive, it can mean there is a problem.

Is it possible to set a reminder, or email myself automatically, if a particular email does not arrive by a certain time every hour?

Yes, you can do this using a run a script rule. Outlook doesn't have a timer, so you'll need to use reminders to trigger the check. When a message arrives, a reminder is set for one hour and the reminder and flag are removed from the older message(s). If you prefer, you can delete the older message instead.
Add a reminder to a message

While this code sample only triggers a reminder, you can use the method described at Send an email when an Appointment reminder fires to send an email when the reminder fires.

To use, add this code to a new module in Outlook's VBA Editor and create a run a script rule.

run a script rule

Sub RemindNewMessages(Item As Outlook.MailItem)
 
Dim objInbox As Outlook.MAPIFolder
Dim intCount As Integer
Dim objVariant As Variant
 
Set objInbox = Session.GetDefaultFolder(olFolderInbox)
' if the message is in another mailbox, use the data file name in the folders list
' should be the email address
' Set objInbox = Session.Folders("name in folder list").Folders("Inbox")

 
' Set the flag/reminder on newly arrived message
 With Item
    .MarkAsTask olMarkThisWeek
    .TaskDueDate = Now + 1
    .ReminderSet = True
    ' Reminder in one hour
    .ReminderTime = Now + 0.041
    .Categories = "Remind in 1 Hour"
    .Save
End With

Item.Save
 
' look for existing messages and remove the flag and reminder 
For intCount = objInbox.Items.Count To 1 Step -1
 Set objVariant = objInbox.Items.Item(intCount)
 
 If objVariant.MessageClass = "IPM.Note" Then
    If LCase(objVariant.Subject) = LCase(Item.Subject) And objVariant.SentOn < Item.SentOn Then
' clear flag and category
With objVariant
    .ClearTaskFlag
    .Categories = ""
    .Save
End With

'or just delete the older messages
   '  objVariant.Delete
     Else
    End If
 End If
Next
 
Set objInbox = Nothing
End Sub


 

Use an ItemAdd macro to watch a shared mailbox

This version of the macro uses an ItemAdd macro to watch the inbox in a shared mailbox. The shared mailbox needs to be in your profile for this to work.

It checks every message that arrives, you'll need to use an If statement if you want to check only certain messages.

Option Explicit
Private objNS As Outlook.NameSpace
Private WithEvents objNewMailItems As Outlook.Items
Private objInbox As Outlook.MAPIFolder

Private Sub Application_Startup()
Dim objOwner As Outlook.Recipient
Set objNS = Application.GetNamespace("MAPI")

 Set objOwner = objNS.CreateRecipient("chris")
   objOwner.Resolve
If objOwner.Resolved Then
Set objInbox = objNS.GetSharedDefaultFolder(objOwner, olFolderInbox)
End If

Set objNewMailItems = objInbox.Items
End Sub


Sub objNewMailItems_ItemAdd(ByVal Item As Object)

Dim intCount As Integer
Dim objVariant As Variant
   
' Set the flag/reminder on newly arrived message
 With Item
    .MarkAsTask olMarkThisWeek
  '  .TaskDueDate = Now + 1
    .ReminderSet = True
    ' Reminder in one hour
    .ReminderTime = Now + 0.041
    .Categories = "Remind in 1 Hour"
    .Save
End With
 
Item.Save
  
' look for existing messages and remove the flag and reminder
For intCount = objInbox.Items.Count To 1 Step -1
 Set objVariant = objInbox.Items.Item(intCount)
  
 If objVariant.MessageClass = "IPM.Note" Then
    If LCase(objVariant.Subject) = LCase(Item.Subject) And objVariant.SentOn < Item.SentOn Then
' clear flag and category
With objVariant
    .ClearTaskFlag
    .Categories = ""
    .Save
End With
 
'or just delete the older messages
   '  objVariant.Delete
     Else
    End If
 End If
Next
End Sub


How to use macros

First: You will need macro security set to low during testing.

To check your macro security in Outlook 2010 or 2013, go to File, Options, Trust Center and open Trust Center Settings, and change the Macro Settings. In Outlook 2007 and older, it’s at Tools, Macro Security.

After you test the macro and see that it works, you can either leave macro security set to low or sign the macro.

Open the VBA Editor by pressing Alt+F11 on your keyboard.

To put the code in a module:

  1. Right click on Project1 and choose Insert > Module
  2. Copy and paste the macro into the new module.

More information as well as screenshots are at How to use the VBA Editor

More Information

More Run a Script Samples:

  • Autoaccept a Meeting Request using Rules
  • Automatically Add a Category to Accepted Meetings
  • Blocking Mail From New Top-Level Domains
  • Convert RTF Messages to Plain Text Format
  • Create a rule to delete mail after a number of days
  • Create a Task from an Email using a Rule
  • Create an Outlook Appointment from a Message
  • Create Appointment From Email Automatically
  • Delegates, Meeting Requests, and Rules
  • Delete attachments from messages
  • Forward meeting details to another address
  • How to Change the Font used for Outlook's RSS Feeds
  • How to Process Mail After Business Hours
  • Keep Canceled Meetings on Outlook's Calendar
  • Macro to Print Outlook email attachments as they arrive
  • Move messages CC'd to an address
  • Open All Hyperlinks in an Outlook Email Message
  • Outlook AutoReplies: One Script, Many Responses
  • Outlook's Rules and Alerts: Run a Script
  • Process messages received on a day of the week
  • Read Outlook Messages using Plain Text
  • Receive a Reminder When a Message Doesn't Arrive?
  • Run a script rule: Autoreply using a template
  • Run a script rule: Reply to a message
  • Run a Script Rule: Send a New Message when a Message Arrives
  • Run Rules Now using a Macro
  • Run-a-Script Rules Missing in Outlook
  • Save all incoming messages to the hard drive
  • Save and Rename Outlook Email Attachments
  • Save Attachments to the Hard Drive
  • Save Outlook Email as a PDF
  • Sort messages by Sender domain
  • Talking Reminders
  • To create a rule with wildcards
  • Use a Macro to Copy Data in an Email to Excel
  • Use a Rule to delete older messages as new ones arrive
  • Use a run a script rule to mark messages read
  • Use VBA to move messages with attachments
Receive a Reminder When a Message Doesn't Arrive? was last modified: February 2nd, 2024 by Diane Poremsky
Post Views: 77

Related Posts:

  • Use a Rule to delete older messages as new ones arrive
  • Send a New Message when a Message Arrives
  • A simple run a rule script marks Outlook messages read when the messag
    Use a run a script rule to mark messages read
  • Run a script rule: Reply to a message

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. Martin Chan says

    June 7, 2021 at 12:06 am

    I just use the method u provided plus some modifications and solved my problem faces at work, big thanks to u, I have long been not using VBA and required to do it on my new job. Appreciate!

    Reply
  2. Marek says

    September 7, 2020 at 2:41 pm

    Hi Diane, I have attempted to run this script in Outlook 365 however it doesn't seem to apply the reminder. Is the macro likely to also work in Outlook 365 or will it need amending? Thanks in advance!

    Reply
    • Diane Poremsky says

      September 7, 2020 at 10:37 pm

      It will work in all of the Windows desktop versions of Outlook.

      Which macro are you using?

      Reply
      • Marek says

        September 8, 2020 at 4:52 am

        The first macro listed above (for a non-shared mailbox) - I have simply copy and pasted exactly as above although I have amended the 1 hour to 15 minutes. I have also ensured to enable all macros in the trust center. I don't get any errors when the macro is run so suggestion is it's working however no reminder is set??

  3. Corne Grobler says

    January 16, 2017 at 5:35 am

    Hi Diane. I am also an administrator and I ran into the same issue regarding having to read multiple alert e-mails daily. It's mostly to find the failed backups between all the successful backups and then worrying if an e-mail is even delivered. Since I am useless at coding I had a developer build me a tool called http://www.smtpviewer.com which worked so nicely I decided to roll it out to the general public. I hope as an alternative you readers can find value out of my site.Regards

    Reply
  4. Joe says

    June 2, 2016 at 9:54 am

    This is a great script, thanks for sharing.
    I have been running this script in Outlook 2016, Online Mode Exchange 2010.
    I have noticed once I moved myself to Exchange 2016 from Exchange 2010, the script no longer worked. Have you seen this before?

    Thanks,
    Joe

    Reply
    • Diane Poremsky says

      August 18, 2016 at 11:10 am

      all of the macros are tested in Outlook 2016 against Exchange online... so no, i haven't seen it. Usual cause of failure is macro security (change not likely if you just changed email accounts). The actual account is not hardcoded into it, so it should work with any server.

      Reply
  5. Stephen says

    February 10, 2016 at 8:40 am

    Hello Diane, Thank you for sharing this, it will be most helpful. I have one question related to it, I would like to have the script look for the messages in a specific folder and remove the reminder flag only from others in that same folder. I am setting up the rule to first move specific messages to that folder and then run the script against them. Tried some other settings to this, although I could not get it to work

    Set objInbox = Session.GetDefaultFolder(olFolderInbox)

    I would appreciate your input on this.
    Best regards,
    Stephen

    Reply
  6. Luigi says

    October 6, 2015 at 5:41 am

    Exactly fitting, but I have an additionally inbox which I share with other colleagues. How can I implement this rule anyway?
    In the Outlook Web App I didn't see that I can add a script. Is it possible with the Outlook client? If so, have the client always to be run?

    Reply
    • Diane Poremsky says

      October 6, 2015 at 10:55 pm

      You would need to run it in outlook - but as long as the mailbox is open in your outlook profile, you can watch the folder. You'd need to convert the macro to an itemadd macro and watch the shared folder if the account is not open in your mailbox as a separate account.

      Reply
    • Diane Poremsky says

      October 7, 2015 at 12:21 am

      I added a macro that watches a shared mailbox to the end of the article.

      Reply
  7. Valentin says

    August 27, 2015 at 10:25 am

    Thank you, is working now.

    Reply
  8. Valentin says

    August 26, 2015 at 10:40 am

    Hi Diane,

    I tried your solution in my office. We work white outlook 2013 and a Exchange server. I have a error whit this part ".TaskDueDate = Now + 1".

    A pop-up appears whit this msg "this object does not support this method".

    Can you have a solution ?

    Thank you very much.

    Reply
    • Diane Poremsky says

      August 26, 2015 at 10:19 pm

      Assuming you are not using IMAP, does it work if you change Now + 1 to Now + 2 (or higher) or use Date + 2?
      or change markastask to .MarkAsTask olMarkTomorrow

      (Due tomorrow doesn't work with olmarkthisweek if you are early in the week)

      Reply
  9. Brian Dennis says

    July 2, 2015 at 2:12 pm

    Diane,

    Option 2 worked perfectly for me! Thank you :)

    I would like to know where the tip jar is?

    Reply
    • Diane Poremsky says

      July 2, 2015 at 2:20 pm

      Tips are not necessary, but if you really want to, i won't turn them down - paypal address is drcp@cdolive.com.

      Reply
    • Brian Dennis says

      July 2, 2015 at 2:27 pm

      I always tip for excellent service :)

      Reply
      • Diane Poremsky says

        July 2, 2015 at 2:58 pm

        Thanks!

  10. Brian Dennis says

    July 1, 2015 at 8:48 am

    Diane,

    I am having difficulty getting this macro to remove the alerts and flags of emails that have come from similar processes but have a time stamp attached to the subject. In your example it seems that you have it set to a static subject line. My emails are a bit more dynamic when it comes to how the subject line is composed.

    If LCase(objVariant.Subject) = LCase(Item.Subject) And objVariant.SentOn < Item.SentOn Then

    This line seems to be the culprit.

    How can I make it look for something in the subject line that "contains" text?

    All of my emails come in with text like this:

    Static Email Subject: 6/1/2015 01:02:03
    Static Email Subject: 6/2/2015 04:06:56
    Static Email Subject: 6/2/2015 05:14:15
    Static Email Subject: 6/3/2015 02:09:23

    What I need it to do is work if the "Static Email Subject" is in the subject line.

    Reply
    • Diane Poremsky says

      July 1, 2015 at 2:17 pm

      will that always be the first part and always have the same # of characters (or close to the same #)? If so, you can use left function:
      If left(LCase(objVariant.Subject),22) = left(LCase(Item.Subject),22) And objVariant.SentOn < Item.SentOn ThenIf it will always be "Static Email Subject", you could use If left(LCase(objVariant.Subject),22) = LCase("Static Email Subject: ") And objVariant.SentOn < Item.SentOn Then

      Reply
  11. Logesh says

    January 28, 2015 at 8:01 pm

    One more question. It's understandable that if the macro matches the subject then it clears the reminder and un-flags the original email. If the reply email contains RE: (default prefix in subject) then macro is not considering that as a match and as a result it's not clearing the reminder or un-flags the original email, but actually it should clear. I would feel happy if you suggest a syntax that will not consider RE: or FW: default prefix in subject.

    Reply
    • Diane Poremsky says

      January 29, 2015 at 11:56 pm

      I must be losing my mind, because I swear I answered this last night. :) Or maybe it was a similar question from another users... anyway, you'll use an If statement - something like this -

      sSubject = LCase(objVariant.Subject)

      if InStr(sSubject , ":") = 3 then
      sSubject = right(sSubject, len(ssubject) - 4)
      end if

      sFilter = "[Subject] = " & ssubject

      Reply
  12. Logesh says

    January 28, 2015 at 7:42 pm

    Hi Diane, Thanks much for your response. I tested in my personal outlook (in which the account type is not exchange) and it works fine. I didn't get chance to text in exchange account. I will be testing it in 1 or 2 days. I'll keep you posted on the result. Thanks again.

    Reply
  13. Logesh says

    January 23, 2015 at 11:30 pm

    Yes its exchange. Cache is not enabled but if i enable, the macro is working fine without latency, however for a reason i'm not suppose to enable the cache. Is there a workaround to make the macro work without enabling the cache?

    Reply
    • Diane Poremsky says

      January 26, 2015 at 1:45 am

      The macro checks each message in the inbox for a match - with class online mode, it had to go out to the server, which results in the slower response time. As long as you only have one match (or Outlook finds the newest one first) you could exit when it finds the match.

      With objVariant
      .ClearTaskFlag
      .Categories = ""
      .Save
      End With

      'or just delete the older messages
      ' objVariant.Delete

      Exit Sub
      Else
      End If

      A filter instead of a loop could also improve the response time - something like this:
      sFilter = "[Subject] = " & LCase(objVariant.Subject)
      Set ResItems = MailItems.Restrict(sFilter)
      'Loop through the items in the collection.
      For Each Item In ResItems
      If objVariant.SentOn < Item.SentOn Then
      ' do whatever
      Next

      Reply
  14. Logesh says

    January 19, 2015 at 8:38 pm

    Hi Diane, U are doing an awesome job. Thanks much for doing such an excellent work.
    This code is working fine at home, yet in my office system I’m encountering latency. When I researched the reason for latency I could sense the following syntax is causing the delay in execution. ( If LCase(objVariant.Subject) = LCase(Item.Subject) And objVariant.SentOn < Item.SentOn Then). As information, I’m using outlook 2010 I changed macro security settings to enable all macros and restarted the outlook multiple times but no luck yet. Not sure why in my office system the outlook is getting freeze to 12 seconds when the macro executes. Would it be due to some other reason? Is there way to fix this? Any help is really appreciated.

    Reply
    • Diane Poremsky says

      January 20, 2015 at 10:30 pm

      What type of email account are you using at work? If Exchange, is it cached locally?

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 7

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • This operation has been cancelled due to restrictions
  • How to Hide or Delete Outlook's Default Folders
  • Change Outlook's Programmatic Access Options
  • Use Public Folders In new Outlook
  • Removing Suggested Accounts in New Outlook
  • How to Delete Stuck Read Receipts
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.