How to make Microsoft Outlook prompt on empty subject?

It’s important and mandatory that the emails we send have relevant "subject" to it. Almost all email clients have this feature, where it will prompt user about the empty subject.

Unfortunately, when i started using Ms Office Outlook (previously i was using Thunderbird) as this is what my new company using, i notice that Ms Outlook doesn't prompt if i miss out the subject.

Then i Google around and found the solution for it. Please follow the simple steps below which will prevent you from sending a mail without a subject.

Here are the below steps:

  • Open your Microsoft Office Outlook
  • Press Alt+F11. This opens the Visual Basic editor
  • On the Left Pane, one can see Project1 --> Microsoft Office Outlook Objects" --> "ThisOutlookSession".
  • Click on "ThisOutlookSession".
  • Copy and Paste the following code in the right pane.(Code Pane)

  1. Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
  2. Dim strSubject As String
  3. strSubject = Item.Subject
  4. If Len(strSubject) = 0 Then
  5. Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"
  6. If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Message without subject") = vbNo Then
  7. Cancel = True
  8. End If
  9. End If
  10. End Sub

  • Now save the code (Ctrl+S) and close the Visual Basic editor.

That's all, now you can test by sending an email without subject. If it doesn't prompt, you may try re-start your Ms Office Outlook application.

How to make Microsoft Outlook prompt on empty subject?

does not work in Outlook 2007 Exchange Mode

Let me check and revert back

Let me check and revert back here...

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <b> <i> <p> <br> <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.