Warn if subject line is empty

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there

is there a way that would force a user to enter a subject into an e-mail? Some users seem to have a tendency to forget entering a subject and I would like this to stop

Thanks
Thomas
 
This is very easy to do with a few lines of Outlook VBA code in the built-in ThisOutlookSession module:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.Subject = "" Then
Cancel = True
MsgBox "Please fill in the subject before sending.", vbExclamation, "Missing Subject"
End If
End Sub

If you're new to Outlook VBA macros, this page should help you get started -- http://www.slipstick.com/dev/vb.htm#tutorials
 
Back
Top