Email with no Subject?

V

Victor

Is there a way for Outlook XP to issue a warning if I try to send an email with no
subject?

Even a plug-in or a macro would be great! ANYTHING!!!

Thank you,

Victor
 
S

Sue Mosher [MVP-Outlook]

Write code for the Application_ItemSend event handler, e.g.:

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

And see http://www.outlookcode.com/d/vbabasics.htm if you're just getting started with Outlook VBA.

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

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

Victor

That worked!

With Outlook 2002, I figured out how to create a self-signed certificate and assigned it
to the macro, so my your routine will always run with my macro security setting is still
set to High.

Thanks, Sue!

Vic
 

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