Blank Subject Line Rule

  • Thread starter Thread starter Rabih Najib
  • Start date Start date
R

Rabih Najib

Hi,

Can somebody please tell me if I can setup a rule in Microsoft Outlook to
move all messages with nothing in their subject line to a specific foloder?

Thanks in advance.

Rabih
 
Thanks so much.

Sue Mosher said:
You can use Outlook VBA code for this:

Private Sub Application_ItemSend(ByVal Item as Object, Cancel as Boolean)
If Item.Subject = "" Then
MsgBox "You forgot the subject."
Cancel = True
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
 
The code that you have provided me with works fine for checing messages that
I want to send. What I actually want is a code for checking mesages as they
arrive and then move the ones with nothing in their subject line to a
specific folder.

Thanks.
 
Back
Top