How do I turn On the Empty Subject Line reminderfor Outlook 2003?

G

Guest

I want to be reminded of an empty subject line before sending my emails using
Outlook 2003. How do I turn On the Empty Subject Line reminder for Outlook
2003?
 
R

Roady [MVP]

There is no such option but you can use this VBA code;

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeName(Item) <> "MailItem" Then Exit Sub

'CHECK FOR BLANK SUBJECT LINE
If Item.Subject = "" Then
Cancel = MsgBox("This message does not have a subject." & vbNewLine & _
"Do you wish to continue sending anyway?", _
vbYesNo + vbExclamation, "No Subject") = vbNo
End If
End Sub
 
G

Guest

Roady, Thank you for your help. I am not that familiar with Outlook and not
sure where I would place this code and how I would do it. Can you please help
me with that?
Thank you
BenZ
 
S

Sue Mosher [MVP-Outlook]

See http://www.outlookcode.com/d/vbabasics.htm for Outlook VBA basics.

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

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


BenZ said:
Roady, Thank you for your help. I am not that familiar with Outlook and not
sure where I would place this code and how I would do it. Can you please help
me with that?
Thank you
BenZ

Roady said:
There is no such option but you can use this VBA code;

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeName(Item) <> "MailItem" Then Exit Sub

'CHECK FOR BLANK SUBJECT LINE
If Item.Subject = "" Then
Cancel = MsgBox("This message does not have a subject." & vbNewLine & _
"Do you wish to continue sending anyway?", _
vbYesNo + vbExclamation, "No Subject") = vbNo
End If
End Sub

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
I want to be reminded of an empty subject line before sending my emails
using
Outlook 2003. How do I turn On the Empty Subject Line reminder for Outlook
2003?
 
G

Guest

OK, so it works. I tried pasting the code into the session and it does remind
that your email doesn't have a subject line. Here is what I am running into,
when I click send, the email just sort of freezes and doesn't do anything.
The reminder is not popping up on the email window, it pops up on the mail
Outlook Window. Is there a way to make it pop up in front of the email
window, like all other reminders do. They pop up mostly over your active
screen or atleast make a noise and start to blink in the bottom tray.
Your help is much appreciated.


Sue Mosher said:
See http://www.outlookcode.com/d/vbabasics.htm for Outlook VBA basics.

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

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


BenZ said:
Roady, Thank you for your help. I am not that familiar with Outlook and not
sure where I would place this code and how I would do it. Can you please help
me with that?
Thank you
BenZ

Roady said:
There is no such option but you can use this VBA code;

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeName(Item) <> "MailItem" Then Exit Sub

'CHECK FOR BLANK SUBJECT LINE
If Item.Subject = "" Then
Cancel = MsgBox("This message does not have a subject." & vbNewLine & _
"Do you wish to continue sending anyway?", _
vbYesNo + vbExclamation, "No Subject") = vbNo
End If
End Sub

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
I want to be reminded of an empty subject line before sending my emails
using
Outlook 2003. How do I turn On the Empty Subject Line reminder for Outlook
2003?
 

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