Howto : Ensure to Include a Subject Line in Microsoft Outlook

Sending out emails without a subject line is bound to happen when we are engrossed with multiple activities. It’s probably OK with personal emails but when it comes to our official mails, it may not be a healthy practice. Remembering to put down a subject before getting to the body is one way to achieve it, but things may not always work out as planned.

Here is a small snippet that adds-on a functionality into your MS Outlook to remind you if there’s no subject line in place. It comes by default on some web emails (gmail).

1. Open Microsoft Outlook

2. Press Alt+F11 to open the Visual Basic editor

3. On the Left Pane you’ll see “Project1 ” under that “Microsoft Outlook Objects”, expand this. Now one can see the “ThisOutLookSession”.

4. Click on “ThisOutLookSession”.

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

Hit save and close the VB code editor.

Now trying sending out a mail without a subject line, you will know the consequence :).

Related posts:

  1. Howto : Crash Internet Explorer
  2. Howto : Add Ads After First Post on your Wordpress Homepage
  3. How to Create Desktop Shortcuts on Windows XP that Microsoft Left Out!!
  4. How Not to Look Spammy
  5. Don’t Brushoff Privacy!

Filed Under: Archive Categories

Tags:

About the Author

Abhinav Kaiser is a certified project manager (PMP) and an expert in IT service management. He has been writing on several blogs for over 6 years and has been a source of inspiration for many budding bloggers. He recently started a blog, Abhinav PMP and his latest baby in the works needs special mention - Success Mantras. Click here if you need to get in touch.

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.