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

Disable Outlook's No Subject Warning using VBA

Slipstick Systems

› Developer › Disable Outlook’s No Subject Warning using VBA

Last reviewed on February 11, 2018     24 Comments

Applies to: Outlook (classic), Outlook 2010

Use this macro to disable the blank subject warning in Outlook 2010, Outlook 2013, and Outlook 2016.
Do you want to send without a subject?

If you are looking for a macro to warn you that the subject is blank in earlier versions of Outlook, see Macro to Warn Before Sending a Message with a Blank Subject.

Please note: If you need help with this macro, please use the comments section below.

To use, open the VBA Editor using Alt+F11 and paste this into ThisOutlookSession.

Reprinted with permission of Peter Marchert

Option Explicit
'======================================================================
' Prevents Outlook 2010 no-subject warning message
' (c) Peter Marchert -//www.outlook-stuff.com
' 2010-07-15 Version 1.0.0
' 2010-07-19 Version 1.0.1
' 2010-08-01 Version 1.1.0
' 2010-08-31 Version 1.1.1
'======================================================================

Private WithEvents colInspectors As Outlook.Inspectors

Private Sub Application_Startup()

Set colInspectors = Outlook.Inspectors

End Sub

Private Sub colInspectors_NewInspector(ByVal Inspector As Inspector)

Dim objItem As Object

On Error GoTo ExitProc

Set objItem = Inspector.currentItem

If InStr(LCase(objItem.MessageClass), "ipm.appointment") > 0 Then
If objItem.MeetingStatus = 0 Then GoTo ExitProc

End If

If objItem.EntryID = "" Then
If objItem.Subject = "" Then objItem.Subject = " "
If objItem.Location = "" Then objItem.Location = " "

End If

ExitProc:

Set objItem = Nothing
Set Inspector = Nothing

End Sub

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

On Error Resume Next

Item.Subject = Trim(Item.Subject)
Item.Location = Trim(Item.Location)

End Sub

Private Sub Application_Quit()

Set colInspectors = Nothing

End Sub

How to use the macro

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. 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.)

Application_Startup macros run when Outlook starts. If you are using an Application_Startup macro you can test the macro without restarting Outlook by clicking in the first line of the Application_Startup macro then clicking the Run button on the toolbar or pressing F8.

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

Disable Outlook's No Subject Warning using VBA was last modified: February 11th, 2018 by Slipstick

Related Posts:

  • Check start and end times of new appointments
  • Macro to Warn Before Sending a Message with a Blank Subject
  • Add a keyword to the subject of all messages sent
  • Create Appointment From Email Automatically

About Slipstick

System administrator at Outlook and Exchange Resource Center since 1997.

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

HB8 (@guest_219996)
January 18, 2023 5:03 pm
#219996

This happens to work great but the problem is that it causes an error when scheduling Zoom meetings. Error 300 topic. it is because this script is forcing the subject to be blank. Is there any way to fix this so Zoom meetings can be set without issues?

0
0
Reply
RamyJo (@guest_219393)
June 10, 2022 3:52 pm
#219393

Will this work for outlook.com? If not, is there a way to disable that feature when using outlook.com? Thanks!

0
0
Reply
Diane Poremsky(@diane-poremsky)
Admin
Reply to  RamyJo
June 10, 2022 10:11 pm
#219395

It is outlook desktop for windows only (works with any account type). You can't use VBA in Outlook on the web.

There is no way to disable the warning in Outlook on the web - sorry.

0
0
Reply
Josh (@guest_217865)
April 7, 2021 8:44 pm
#217865

I have Outlook 2016 and I can't even do step 1. No VGA box opens when I press Alt and F11.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Admin
Reply to  Josh
April 8, 2021 12:03 am
#217867

Is VBA addin enabled in File > Options > Addins?

Customize the ribbon (Options > customize Ribbon) - and enable the Developer tab. You can open the VBA editor using the button on the left of that ribbon.

0
0
Reply
Josh (@guest_217869)
Reply to  Diane Poremsky
April 8, 2021 11:12 am
#217869

Thank you. I eventually got it by using the "Tell me what you want to do..." and putting in "Open VBA Editor".

0
0
Reply
Rob (@guest_203998)
January 19, 2017 1:34 pm
#203998

Works with 2016

0
0
Reply
MgDizzle (@guest_203274)
December 7, 2016 12:26 am
#203274

Thank you! This Macro worked seamlessly when you follow the explicit directions! Kewl Stuff!

0
0
Reply
rachel (@guest_194165)
October 22, 2015 8:41 pm
#194165

Thanks Diane! Will this work on 2013 outlook too?

0
0
Reply
Diane Poremsky(@diane-poremsky)
Admin
Reply to  rachel
October 22, 2015 9:41 pm
#194166

yes, it will work with 2016 and 2013.

0
0
Reply
rachel (@guest_194158)
October 22, 2015 3:17 pm
#194158

whats the starting point and end point I need to copy paste into the outlooksession?

0
0
Reply
Diane Poremsky(@diane-poremsky)
Admin
Reply to  rachel
October 22, 2015 8:38 pm
#194164

You should include everything from Option Explicit to the last End Sub. If you double click in the code to select all then copy (either right click, copy or Ctrl+C) you'll copy the entire code piece, properly formatted (Even though it might be on big block of text after you double click.)

0
0
Reply
Sasha (@guest_191025)
May 21, 2015 5:45 pm
#191025

Works beautifully! Thank you!!!!!!! I hate that message!

0
0
Reply

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

Latest EMO: Vol. 30 Issue 19

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
  • Jetpack plugin with Stats module needs to be enabled.
  • 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
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
  • Classic Outlook is NOT Going Away in 2026
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

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

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Classic Outlook is NOT Going Away in 2026

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.

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