Forcing Outlook to send emails only with subject

It’s important and mandatory that the emails we send have relevant “subject” to it. At times, we miss to mention the subject and send email. Please follow the simple steps below which will prevent you from sending a mail without a subject. This should/must be configured in office mailbox in which subjects are more crucial.

Here are the below steps

  • Open your outlook
  • Press Alt+F11. This opens the Visual Basic editor
  • On the Left Pane, one can see “Microsoft Outlook Objects”, expand this. Now one can see the “ThisOutLookSession.”
  • Click on “ThisOutLookSession”.
  • Copy and Paste the following code in the right pane.(Code Pane)

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(strSubject) = 0 Then
Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then
Cancel = True
End If
End If
End Sub

Save this and now close the VB Code editor and take a breath. From now on, this macro will make sure you do not make the mistake of sending a mail without subject.

15 thoughts on “Forcing Outlook to send emails only with subject”

  1. I use T’bird as my mail client, but for my current customer’s mail, I have to use Outlook.

    While it is a standard feature in T’bird — in fact, it was there in Netscape 4.x — it is not there even in Outlook 2003. So, the other day when I sent out subject-less mail to a mailing list, I Googled for it, but your post didn’t show up then. Today, I StumbledUpon it — and it works fine!

    Thanks and keep up your good work! BTW, I lived in Chennai-Egmore for 12 years…

  2. Googling didn’t help you since this page might not been there when u tried.. anyway thanks to StumbleUpon.!!! Thanks for the comments as well.. btw grt to know that… where are you presently?

  3. When I hit Alt-F11, the VB screen comes up but I don’t have a left pane and I don’t see “Microsoft Outlook Object.” What might I be doing incorrectly?

    Thank you!

  4. Hi that is really useful – except I work with categories so I have replaced subject with categories in the code and it works! Brilliant – every email automatically filed.

  5. i need to allow the subject to all outlook users, i have about 200 user using outlook. please advice me how to disallow them to send outlook emails without subject. they must write a subject…..

  6. Thanks but it worked only once.from next time onwords id doesn’t worked.i think this is because i am using outlook 2007 or there may be another pls help me

  7. I wanted to publish this macro in all computers in a domain,but it didn’t work.Could I use my exchange server to avoid sending message without subjects?

  8. Pingback: Technical Diary » Blog Archive » links for 2011-08-14

  9. Thanks, got to work with 2007. Had to set macro security settings to “Warnings for all macros”, then just OK macros at warning on startup of Office.

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top