Check MS Outlook Empty Subject

Do you constantly send email without a subject using Outlook?

Here's the solution.

Article Source Link
"

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


Go to Tools -> Trust Center -> Macro Security
and select "No security check for macros."
Note you know what types of macro are running.

"

1 comment:

Trevor Hook said...

I was searching for this thing from very long time , thanks for your macro code.

Thanks
www.iyogi.co.uk