Can Outlook propmpt me to add a subject line if forgotten?

C

CatBear

I hate when I am in a hurry to send and email, and forget to fill out the
subject line. Is there a way to have Outlook alert me if the subject line is
empty?
 
M

Michal [Outlook MVP]

CatBear said:
I hate when I am in a hurry to send and email, and forget to fill out the
subject line. Is there a way to have Outlook alert me if the subject line is
empty?
This simple macro should solve the problem:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim oMail As MailItem
Set oMail = Item
If oMail Is Nothing Then Exit Sub

If (StrComp(oMail.Subject, "", vbTextCompare) = 0) Then
MsgBox "What about the subject?"
Cancel = True
End If
End Sub

You need to paste it into the ThisOutlookSession module. And ensure the
macro security level is set to the lowest level.

--
Best regards,
Michal [Microsoft Outlook MVP]

http://www.codetwo.com
Share Outlook on the net without Exchange!
 

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