Alert when I attempt to send email without a subject line

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

Guest

Is there a way to set up an alert when I attempt to send mail, but I have
forgotten to put in a subject line?
 
See slipstick.com - I think I saw something there.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact. Due to
the (insert latest virus name here) virus, all mail sent to my personal
account will be deleted without reading.

After furious head scratching, Wendee E. asked:

| Is there a way to set up an alert when I attempt to send mail, but I
| have forgotten to put in a subject line?
 
There is no such feature, but you can build it in with a little VBA code:

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

For a more elaborate version that also checks for expected attachments, see
http://www.outlookcode.com/codedetail.aspx?id=553
 
Back
Top