Warn if subject line is empty

T

Thomas

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
 
S

Sue Mosher [MVP]

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
 
Top