forgetting to fill subject when sending emails

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

Guest

Dear MS

If the 'Subject field is left blank when sending emails can a prompt be
raised to let me know I've omiited to fill this field. Would prevent sending
of 'unprofessional looking emails. Thanks

Kevin

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...e73f4c07f&dg=microsoft.public.outlook.general
 
You can build that feature 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 more elaborate versions that also check for expected attachments, see:

http://www.outlookcode.com/codedetail.aspx?id=553
http://www.outlookcode.com/codedetail.aspx?id=1278

And for VBA basics, see http://www.outlookcode.com/d/vbabasics.htm


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

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