Possible to require subject when sending mail?

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

Guest

Hello everybody

Is it possible to tune Outlook (version XP or 2003) so that it's required to fill in a subject when sending a mail

Sergio
 
There is no such feature, but you can build it in with a little Outlook
2000/2002 VBA code:

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

If you're new to Outlook VBA macros, these web pages should help you get
started:

http://www.winnetmag.com/Articles/Index.cfm?ArticleID=21522&pg=1
http://www.slipstick.com/dev/vb.htm

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sergio Checchi said:
Hello everybody,

Is it possible to tune Outlook (version XP or 2003) so that it's required
to fill in a subject when sending a mail?
 
I want to use this code so it starts up when i run outlook (2003
standalone) - i cant seem to get it to work if i put it in
thisoutlooksession in VB editor

Sergio Checchi said:
Hello everybody,

Is it possible to tune Outlook (version XP or 2003) so that it's required
to fill in a subject when sending a mail?
 
I want to use this code so it starts up when i run outlook (2003
standalone) - i cant seem to get it to work if i put it in
thisoutlooksession in VB editor

Sergio Checchi said:
Hello everybody,

Is it possible to tune Outlook (version XP or 2003) so that it's required
to fill in a subject when sending a mail?
 
I don't understand what you want it to do when Outlook starts.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
basically all i want is whenver i use outlook 2003 and my email being sent
has a blank subject, it prompts me.
 
That's exactly what the code referred to in my earlier post does. There is
nothing to "start up" when you run Outlook. Did you actually try it? If it
didn't work, did you check your macro security settings? If you're new to
Outlook VBA macros, these web pages should help you get started:

http://www.winnetmag.com/Articles/Index.cfm?ArticleID=21522&pg=1
http://www.slipstick.com/dev/vb.htm

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top