Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any way to require a subject line on messages? 1

Status
Not open for further replies.

kmcferrin

MIS
Jul 14, 2003
2,938
US
Does anyone know of any way to require email messages to have a subject line when using Outlook 2003 and Exchange 2003? I've looked through ESM, but I can't seem to find anything applicable.

Thanks!
 
Try this:

To create the macro in Outlook 2003, go to Tools -> Macro -> Visual Basic Editor (this feature has to be installed). In Microsoft Office Outlook Objects -> ThisOutlookSession, paste the following code:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMessage As String
Dim lngRes As Long
If Item.Subject = "" Then
Cancel = True
strMessage = "Please fill in the subject before sending."
MsgBox strMessage, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub
 
But then this macro would have to be installed on all of the PCs, correct? I was hoping for something more centralized, since I have several hundred PCs and users (many of whom rotate among PCs).
 
I'd go the Office Resource Kit way, too. Lots of config things you can do with that.

But - be sure to tip your waitress. A star for Sharper for the answer provided.

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top