No Subject Warning

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

Guest

Can someone please help me get this code working? I would like a warning to come up when I send an e-mail without a subject. I am new at this, so please forgive my ignorance

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean
If Item.Subject = "" The
MsgBox "You forgot the subject.
Cancel = Tru
End I
End Su
 
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

Pay particular attention to the macro security settings.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Drew Liddle said:
Can someone please help me get this code working? I would like a warning
to come up when I send an e-mail without a subject. I am new at this, so
please forgive my ignorance.
 
Back
Top