com addin to check blank subject line

R

Raymond Geering

Hello

Actually I'm looking for a com addin which doesn't do anything
else except checking for a blank subject line. I was hoping to find
such a program in the internet but all those addins had "too many
features".

Actually I'm running a VB macro [1] but I came up with the
idea of a com addin because you can't really distribute the VB
macro in a network environment. Anyway, after reading trough
several MS, technet, msdn. outlookcode.com and other
pages, I'm still at the beginning. Only having VB5 as programming
tool also doesn't make it easier.

I really hope somebody can give me a good hint where to
start. I also wonder if no such addin is available yet?

Kind regards
/Ray


Foot notes
[1] VB Marcro to check blank subject line

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
'******************************************************************************
' Procedure : Application_ItemSend
' DateTime : 12.10.04 10:01
' Author : rg
' Purpose : disallows sending of e-mails w/o a subject line
'******************************************************************************
'

Dim opts As Integer
On Error GoTo Application_ItemSend_Error

opts = vbCritical Or vbOKOnly Or vbApplicationModal
If Trim(Item.Subject) = "" Then
MsgBox "Message has blank subject", opts, "No subject"
Cancel = True
End If

ExitHere:
On Error GoTo 0
Exit Sub

Application_ItemSend_Error:
MsgBox Err.Description, vbExclamation, "Error " & Err.Number _
& " (Application_ItemSend of DieseOutlookSitzung)"
Resume ExitHere


End Sub
 

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