Warn if subject line is empty

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top