Set Reminder for Blank / Empty Subject Field for Mails in Outlook


Sometimes when we send mails, we may forget to mention the subject in the mail.  The blank subject line must be avoided as much as possible to follow email etiquette. Especially when you write official mails, Subject should be mentioned as it is one of the important parts of a mail.  Using a small tip, you can set a reminder or notification which pops up whenever you leave the subject line empty. The procedure is as follows..

  • Open your Microsoft Outlook
  • Press Alt+F11. This opens the Visual Basic Editor and open Project-Project 1 (left side). If this doesn’t open Project-Project 1 then press then Press Ctrl+R.
  • On the Left Pane, one can see “Microsoft Outlook Objects” or “Project1”, expand this. Now one can see the “ThisOutLookSession”.
  • Double click on “ThisOutLookSession”. It will open up a Code Pane on the right hand side.
  • Copy and Paste the following code in the right pane (Code Pane) and save it

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(Trim(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

Now whenever you try to send a mail without subject, a pop-up is raised to remind you of the blank subject. This is a very useful precautionary measure to avoid sending mails without the subject line.

Filed under: Tips n Tricks
Tags: , , , , ,
August 24, 2010 by: Prasanth Chandra

Comments

Leave a Reply