No Subject Warning

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
 
S

Sue Mosher [MVP]

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.
 

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