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

Use a Default Subject for New Messages

Slipstick Systems

› Developer › Code Samples › Use a Default Subject for New Messages

Last reviewed on September 16, 2019     7 Comments

New email iconA user asked how to change the New Email button to use a template so all new messages always used the same subject.

You can't set a custom form as the default but you can use VBA to watch for a new item form to open and 'do something' when it does. Because the administrator only wanted to control the subject, it makes more sense to use a macro rather than a custom form.

For the solution to this problem, I tweaked Micheal Bauer's macro at Inspector: Edit new items, so that it only applies to new email.

You can use this method to affect any field in any new item, but for this sample macro, I'm limiting it to just new email messages.

If you want to tag the subject of every message you send, an ItemSend macro might work better as users can't change the subject after hitting Send. If using Exchange server, a transport rule. Also see Disclaimer and Signature tools

Do something when a new item opens code


' Based on http://www.vboffice.net/en/developers/newinspector-and-inspector-activate
Private WithEvents m_Inspectors As Outlook.Inspectors
Private WithEvents m_Inspector As Outlook.Inspector

Private Sub Application_Startup()
  Set m_Inspectors = Application.Inspectors
End Sub

Private Sub m_Inspectors_NewInspector(ByVal Inspector As Outlook.Inspector)
  Set m_Inspector = Inspector
End Sub

Private Sub m_Inspector_Activate()
If TypeName(m_Inspector.currentItem) = "MailItem" And _
  m_Inspector.currentItem.Subject = "" Then
    m_Inspector.currentItem.Subject = "test"
End If
  Set m_Inspector = Nothing
End Sub

Add an address to the CC field

To add a recipient, place the Private Sub m_Inspector_Activate() macro in the code sample above with the following code.

Private Sub m_Inspector_Activate()
strCC = "alias@domain.com"
If m_Inspector.CurrentItem.Class = olMail Then
m_Inspector.CurrentItem.Recipients.Add strCC
End If
  Set m_Inspector = Nothing
End Sub

How to use the macro

For screenshots, see How to use Outlook's VBA Editor.

Step 1: Verify Macro security is set to low, or self-sign the macro. Outlook will usually mention that macros are disabled when you open the VBA editor, but you should check, just to be sure. Look for this at File, Options, Trust Center, Macro Security in Outlook 2010/2013 or in Tools, Trust Center, Macro Security in Outlook 2007.

Step 2: Open the VB Editor using Alt+F11 keys.

Step 3: This macro needs to go into ThisOutlookSession, which is under Project1.

Step 4: Tweak the macro as needed then click in the Application_Startup macro and click the Run button (or F5). If you need to edit the macro, click and Run the startup macro before testing.

What about the Forms Administrator utility?

In 2000, Microsoft released a Forms Administrator utility that uses a registry key to set custom forms. It was a one-version experiment and the utility was not updated in later releases.

It can still be used (even with Outlook 2013) but there is a reason it was not updated: there are better ways to change default forms.

When used for email, this method creates winmail.dat files, which results in the loss of HTML formatting and may result in the loss of attachments when the recipient is not using Outlook.

From the Microsoft KB article describing FormsAdmin:

In particular, custom e-mail message forms pose the most issues. Therefore, if you change the Outlook default forms, you can experience major issues in some scenarios.

This method will not work with forms that use Forms Regions (Outlook 2007 and later).

More Information

To change a default Outlook form (Outlookcode.com)

Use a Default Subject for New Messages was last modified: September 16th, 2019 by Diane Poremsky

Related Posts:

  • Change the All Day Event Default Free/Busy to "Busy"
  • Reminders are missing in Outlook Calendar
  • Disable Outlook's No Subject Warning using VBA
  • VBA: Change the From Account on Replies

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
7 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Jason
March 21, 2013 9:36 pm

Thank you very much!
Your solution works perfect! Your hint on setting macro security to low is indispensable. That is why the code did not work at first.

Also your notes on disappearing HTML formatting and winmail.dat disruption while using forms substitution are 100% true.

Thank you for your solution. I'll stick with it!

0
0
Reply
Jason
March 21, 2013 7:57 am

I would really appreciate if you could explain to me how to implement the code above for Outlook 2007 (ver.12) because I tried it in macros and get no results whatsoever.

0
0
Reply
Diane Poremsky
Reply to  Jason
March 21, 2013 8:51 am

You need to add it to ThisOutlookSession then either restart Outlook or click in the Application_Startup macro and click the Run button. You also need to have macro security set to low.

0
0
Reply
Jason
March 21, 2013 7:46 am

Yes but my point is that my response really answers the original question, which was "A user asked how to change the New Email button to use a template so all new messages always used the same subject"

Following the steps described at https://msdn.microsoft.com/en-us/library/office/bb176910%28v=office.12%29.aspx leads you exactly to "all new messages always use the same subject"

I can assure you that you have a 100% more Outlook expertize then I do. Still after tedious net surfing only above-mentioned source provided the exact answer to how get your Outlook have the same subject for all new messages by default.

0
0
Reply
Diane Poremsky
Reply to  Jason
March 21, 2013 8:49 am

There are a lot of things that can be done, but the unintended consequences often mean that they shouldn't be done.

That article doesn't tell you about the problems that can occur if you use this method - lost attachments, disappearing HTML formatting, etc. And for that reason, it's not a good solution for most users. If you are fine with winmail.dat files and the potential loss of attachments or HTML formatting, use it. Using the new inspector macro to set the subject will not result in a winmail.dat. Setting global properties to use HTML to internet addresses will not prevent winmail.dat files when using published forms.

0
0
Reply
Jason
March 21, 2013 2:24 am

I am sorry but I believe that your statement ...You can't set a custom form as the default...is erroneous. Please refer to Microsoft Official Subject "Globally Change a Default Form" at https://msdn.microsoft.com/en-us/library/office/bb176910%28v=office.12%29.aspx

The steps provided helped me to Use a default subject for New messages

Thank you

1
-1
Reply
Diane Poremsky
Reply to  Jason
March 21, 2013 5:56 am

Just because you can do something doesn't mean you should. :)

There is a reason that app was never updated since it's release 13 years ago: Using a published custom form as the default message form may annoy non-Outlook recipients and prevent them from getting any attachments you send them. If you use Exchange server, it may convert it to HTML (the admin controls it) and gmail & yahoo remove attachments from the winmail.dat (you lose HTML formatting), but other servers may present the user with a plain text message and a winmail.dat.

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
  • How to Remove the Primary Account from Outlook
  • How to Hide or Delete Outlook's Default Folders
  • Removing Suggested Accounts in New Outlook
  • Reset the New Outlook Profile
  • This operation has been cancelled due to restrictions
  • iCloud error: Outlook isn't configured to have a default profile
  • Adjusting Outlook's Zoom Setting in Email
  • Online Services in Outlook: Gmail, Yahoo, iCloud, AOL, GoDaddy
  • Add Holidays to Outlook's Calendar
  • 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