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

Talking Reminders

Slipstick Systems

› Developer › Talking Reminders

Last reviewed on September 30, 2021     13 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.

A visitor to our forums wanted a macro that could read the subject and sender on incoming mail. It's an intriguing idea and reading the subject is a lot better than a generic "You've got mail!".

But what I really need is my appointment reminders read, especially since Outlook's reminder window no longer takes focus. I can't begin to count the number of appointments I missed because I didn't see the reminder!

The .Speak method uses the syntax .Speak(Text, SpeakAsync, SpeakXML, Purge), with SpeakAsync parameter defaulting to False. This controls whether the speech is asynchronous. You'll want this set on true to eliminate any delays or hangs in Outlook as the test is being spoken. So in Outlook, you'll use xlApp.Speech.speak text, True to prevent hangs.

To use these macros, you will need to set a reference to your version of Excel in the VBA Editor's Tools, References dialog.
Set a reference to Excel

You'll also need to set Macro security to low in File, Options, Trust Center, Macro Settings.

This macro is triggered when an appointment reminder fires. It reads the subject, tells you how soon the appointment begins and the start time.

This macro is added to ThisOutlookSession.

Private Sub Application_Reminder(ByVal Item As Object)
 
If Item.MessageClass <> "IPM.Appointment" Then
  Exit Sub
End If
 
Dim xlApp As Excel.Application
Dim timeOffset As Long
Dim strTimeOffset As String
Set xlApp = Excel.Application

timeOffset = (Item.Start - Now) * 1440

Select Case True
Case timeOffset < 60 'starts in under 1 hour
  strTimeOffset = timeOffset & " minutes, "

Case timeOffset <= 1440 'starts in under a day
  timeOffset = timeOffset / 60 
  strTimeOffset = timeOffset & " hours, "
  
Case timeOffset > 1440 'starts in more than a day
  timeOffset = timeOffset / 1440
  strTimeOffset = timeOffset & " days, on " & Format(Item.Start, "mmmm d")
End Select

 xlApp.Speech.Speak Item.Subject & "Starts in " & strTimeOffset & " at " & Format(Item.Start, "hh:mm am/pm"), True

Set xlApp = Nothing

End Sub

Read Subject and Sender

The original question was "how to read the subject and sender on incoming message". This code sample is used in a run a script rule. Paste this macro into a module.

Create a rule and select the script as the only action. In my example, it speaks the sender and subject of all new messages but you can use conditions to control which messages it speaks.

run a script rule

See Run a Script Rules for more information (and other code samples).

Sub ReadSubject(Item As Outlook.MailItem)
 Dim xlApp As Excel.Application
 Set xlApp = Excel.Application
   xlApp.Speech.Speak "From " & Item.SenderName & Item.Subject, True
 Set xlApp = Nothing
 End Sub

Talking Reminders Tutorial

Change the Voice

By default, the voice is male. If you want to use the female voice, you'll need to change the Text to Speech settings in Windows.

All Windows versions: Go to Control Panel, find Speech Recognition then select Text to Speech to change the voice. (If you've never opened it before, you may be asked to set it up. Close it and reopen to accept the defaults.)

speech to text

Note to Windows 10 users: use the Control Panel Text to Speech settings, not the Speech settings in the new Settings area.

How to use the 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. If Outlook tells you it needs to be restarted, close and reopen Outlook. Note: after you test the macro and see that it works, you can either leave macro security set to low or sign the macro.

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

To use the macro code in ThisOutlookSession:

  1. Expand Project1 and double click on ThisOutlookSession.
  2. Copy then paste the macro into ThisOutlookSession. (Click within the code, Select All using Ctrl+A, Ctrl+C to copy, Ctrl+V to paste.)

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

Speech.Speak Method (Excel) (MSDN)

Talking Reminders was last modified: September 30th, 2021 by Diane Poremsky

Related Posts:

  • How to Create Messages Using Data in an Excel File
  • Send Email to Addresses in an Excel Workbook
  • Convert RTF Messages to Plain Text Format
  • Import meetings from a CSV or XLSX file

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.

Subscribe
Notify of
13 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

phil
September 30, 2021 4:21 am

Hi Diane

do you know if they have a code for? 2021

0
0
Reply
Diane Poremsky
Author
Reply to  phil
September 30, 2021 7:42 am

This code should work in all current versions- 2016, 2019, 2021, and 365 are all Office 16.0

0
0
Reply
Daniel Flick
September 10, 2021 10:21 am

This just broke a couple of days ago. I get a compile error: User-defined type not defined. When I click the OK in the dialog box, this line of the code gets highlighted: "Private Sub Application_Reminder(ByVal Item As Object)". Any ideas how to fix? This has been a godsend for me and I would love to get it working again. Thanks!

Looks like maybe an update disabled the Excel Object Library. I found that in a hit in Stack Exchange and sure enough, the library was unchecked! What is also strange is that when I first opened the editor, the code was no longer there as well and I had to re-paste. Very strange. The only update was a 21H2 rollup that was installed.

Last edited 4 years ago by Daniel Flick
0
0
Reply
Janine
October 10, 2015 12:26 pm

Thank you Diane. I did Control Panel and changed male voice to female. I had changed this in Settings. I use Insider Hub and get Fast Track updates. I find it odd that Settings is not the default but the old Control Panel dialogue box is.

0
0
Reply
Diane Poremsky
Author
Reply to  Janine
October 10, 2015 12:47 pm

Yeah, it's dumb and I'm not exactly sure why it is that way. I don't know what is going to happen when they remove the control panel from a future version of Windows.

0
0
Reply
Janine
October 10, 2015 4:05 am

Works 2010 but won't work O365 Outlook 2016. References set and security low.

0
0
Reply
Janine
Reply to  Janine
October 10, 2015 6:42 am

Resolved. Win10 new build and now I don't have Cortana Australia - did last build. Seriously it is hard to keep up. My chosen voice is Female but it speaks with Male voice. Obviously this build is a little whacky for Australia!

0
0
Reply
Diane Poremsky
Author
Reply to  Janine
October 10, 2015 8:25 am

Interesting. I have the RTM build of win10 on this machine... my guess is maybe file corruption if you kept the programs. That has been a off-and-on problem with Win10.

Go to Control Panel\All Control Panel Items\Speech Recognition and select Text to Speech to change the voice. Male is default and different settings from the one in the new Settings dialog.

0
0
Reply
Diane Poremsky
Author
Reply to  Janine
October 10, 2015 8:18 am

I wrote it in Outlook 2016, so i know that works...

0
0
Reply
Tim
Reply to  Diane Poremsky
January 10, 2017 8:53 am

I am able to run the "ReadSubject" routine. However, I am having trouble with the reminders portion after upgrading to Outlook 2016. I only get the default reminder chime and no speech. The script doesn't break anywhere either. I do have macros enabled with "low security". Did anyone else have this problem with Outlook 2016? It worked great in Outlook 2010!

0
0
Reply
Tim
Reply to  Diane Poremsky
January 10, 2017 9:01 am

Please disregard my last comment ("application reminders not announced with speechbut email subjects get read").

The moral of the story is... Reading the instructions is very important ;) What I had failed to do on migrating my macros was to add the "Application_Reminder" routine to the ThisOutlookSession object in the visual basic browser. I had imported everything into a module.

0
0
Reply
Jon
October 9, 2015 10:20 am

Works in Outlook 2007 too! Thanks for the great tool.

0
0
Reply
Diane Poremsky
Author
Reply to  Jon
October 9, 2015 10:23 am

Yeah, it'll work in any version that includes speech to text in the Excel object model.

1
-1
Reply

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

Latest EMO: Vol. 30 Issue 36

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
  • Mail Templates in Outlook for Windows (and Web)
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • Adjusting Outlook's Zoom Setting in Email
  • This operation has been cancelled due to restrictions
  • How to Hide or Delete Outlook's Default Folders
  • Change Outlook's Programmatic Access Options
  • Shared Mailboxes and the Default 'Send From' Account
  • 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
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
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

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

Import EML Files into New Outlook

Opening PST files in New Outlook

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 © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment