Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / December 2004

Tip: Looking for answers? Try searching our database.

com addin to check blank subject line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raymond Geering - 14 Dec 2004 09:47 GMT
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
Mark Beiley - 16 Dec 2004 15:40 GMT
Brad Smith's MsgDump2000 would be an excellent starting point for this sort
of add-in.
You can download the source code here:

http://www.bpsmicro.com/Files/MsgDump2000.htm

MsgDump2000 is written in C++.

Mark
http://www.email-announcer.com

> Hello
>
[quoted text clipped - 47 lines]
>
> End Sub
Raymond Geering - 17 Dec 2004 07:25 GMT
> Brad Smith's MsgDump2000 would be an excellent starting point for this
> sort of add-in.
> You can download the source code here:
> http://www.bpsmicro.com/Files/MsgDump2000.htm
> MsgDump2000 is written in C++.

I'm sure these are good samples but unfortunately I
only have VB 5.0 (and I can't program in C++)

Kind regards
/Ray
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.