Subject Line

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

Guest

Is there a way to have a window pop-up that says your Subject field is empty,
like some other programs do, before you send it? There have been several
times I forget to fill in the Subject field, then accidentally send it. My
Road Runner account asks before it sends it.
 
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