Can Outlook warn if sending with a blank subject line

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

Guest

When sending an email from Outlook 2003 can an option or rule be set to check
for a blank subject line and bring up an 'are you sure?' type message when
you click on Send?
 
ulkash, you wrote on Tue, 7 Feb 2006 03:30:30 -0800:
When sending an email from Outlook 2003 can an option or rule be set to check
for a blank subject line and bring up an 'are you sure?' type message when
you click on Send?

Use the VBA-Code below:

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
 
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)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

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

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top