• 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 Systems
Post Views: 52

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 Systems

System administrator at Outlook and Exchange Resource Center since 1997.

Comments

  1. HB8 says

    January 18, 2023 at 5:03 pm

    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?

    Reply
  2. RamyJo says

    June 10, 2022 at 3:52 pm

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

    Reply
    • Diane Poremsky says

      June 10, 2022 at 10:11 pm

      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.

      Reply
  3. Josh says

    April 7, 2021 at 8:44 pm

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

    Reply
    • Diane Poremsky says

      April 8, 2021 at 12:03 am

      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.

      Reply
      • Josh says

        April 8, 2021 at 11:12 am

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

  4. Rob says

    January 19, 2017 at 1:34 pm

    Works with 2016

    Reply
  5. MgDizzle says

    December 7, 2016 at 12:26 am

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

    Reply
  6. rachel says

    October 22, 2015 at 8:41 pm

    Thanks Diane! Will this work on 2013 outlook too?

    Reply
    • Diane Poremsky says

      October 22, 2015 at 9:41 pm

      yes, it will work with 2016 and 2013.

      Reply
  7. rachel says

    October 22, 2015 at 3:17 pm

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

    Reply
    • Diane Poremsky says

      October 22, 2015 at 8:38 pm

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

      Reply
  8. Sasha says

    May 21, 2015 at 5:45 pm

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

    Reply
  9. Chris says

    April 22, 2015 at 6:48 am

    Works like a charm ..... thanks - it was driving me insane !

    Reply
  10. JohnnyCakes says

    September 18, 2014 at 2:19 pm

    You must also do this for it to work (which is on the original page from which this is copied):

    Whilst in Outlook select File > Options > Trust Center > Trust Center Settings > Macro Settings > Seelct "Enable all macros..." > Tick "Apply macro security..." > OK.

    Reply
  11. Dale Thompson says

    December 17, 2013 at 9:20 am

    I had to disable this "IF" statement for the macro to work, as my e-mails have an EntryID:

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

    Reply
  12. Kaci says

    July 12, 2013 at 7:38 am

    I entered the code into ThisOutlookSession, and it still prompts me before I send a message. I copied the code starting at "option Explicit"... do I include that as well?

    Reply
    • Diane Poremsky says

      July 29, 2013 at 11:05 pm

      This is an application start up macro - you need to restart outlook or click in the Application startup macro and press Run. This macro needs to be in ThisOutlookSession to work.

      Reply
  13. mac says

    April 16, 2013 at 11:00 am

    didn't work...now how to delete the code ???

    Reply
    • Diane Poremsky says

      April 16, 2013 at 11:03 am

      Open the VBA editor (Alt+F11) expand Project1, select the code, delete it and Save the project.

      Reply
  14. shadi bartsch says

    April 12, 2013 at 11:52 am

    pressing alt and F11 doesn't do anything

    Reply
    • Diane Poremsky says

      April 12, 2013 at 2:05 pm

      That will open the VBA Editor. You can also open it by enabling the Developer ribbon in File, Customize ribbon then clicking the Visual Basic button on the Developer ribbon.

      Reply
  15. paolo says

    July 22, 2012 at 11:18 pm

    hi. where will i enter that command? i mean where could i find thisoutlooksession? please help

    Reply
    • Diane Poremsky says

      July 23, 2012 at 5:35 am

      Press Alt+F11 to open the VB editor then expand the Project folder on the left. ThisOutlookSession is under it.

      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
  • How to Hide or Delete Outlook's Default Folders
  • This operation has been cancelled due to restrictions
  • Change Outlook's Programmatic Access Options
  • Adjusting Outlook's Zoom Setting in Email
  • Outlook Windows won't open or resize
  • Removing Suggested Accounts in New Outlook
  • 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.