Mamado Inside

15 March 2007

Outlook2003 : warning for emails without subject

Filed under: outlook, productivity — mhussein @ 11:33 am

How many times have you sent an email without a subject? yes You! A quick search in my emails tells me that I have been guilty of doing this 6 times this year alone 😦

If you are like me (and you use Outlook like me) you will definitely benefit from my friend‘s latest post.

He has been plagued by the same problem for ages 🙂 but unlike me he decided to do something about, he did his research and found that Outlook MVP Sue Mosher had already wrote code to fix this issue.

The solution is a simple macro that you put in Outlook to warn you and stop the sending process if there is no subject.

I tried it and it worked perfectly, I had a problem when I copied the code from Abdelhalim‘s post because of the double quotes, so I recopied the code here and fixed this issue, if you get errors when you paste this code in VB, delete all double quotes and rewrite them.

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

Check the complete instructions and warning on the original post.

[link] [via]
add to del.icio.usDigg itStumble It!Add to Blinkslistadd to furladd to ma.gnoliaadd to simpyseed the vineTailRank

Advertisements

8 Comments »

  1. […] ofcourse never send an email without a subject […]

    Pingback by email subject tips « Mamado Inside — 27 March 2007 @ 10:40 am

  2. thanks!

    Comment by kwentin — 14 February 2008 @ 11:15 am

  3. Hello!
    Very Interesting post! Thank you for such interesting resource!
    PS: Sorry for my bad english, I’v just started to learn this language 😉
    See you!
    Your, Raiul Baztepo

    Comment by RaiulBaztepo — 29 March 2009 @ 2:38 am

  4. Nice code, thanks

    Comment by jon — 20 April 2009 @ 12:19 pm

  5. thanks a lot..

    Comment by Swaroopa — 11 June 2009 @ 11:48 am

  6. Thanks for the correction..!

    Comment by Arpit — 25 November 2009 @ 3:29 pm

  7. Thnaks,

    But it didn’t work with me on Outlook 2007.

    Is there is a specific code for outolook 2007.

    please confirm and reply to my e-mail: aabdelaty@sewedy.com.eg

    Comment by Ahmed — 7 December 2009 @ 7:07 pm

  8. Hi! I’m at work browsing your blog from my new iphone 4!
    Just wanted to say I love reading through your blog and look forward to all your posts!
    Keep up the excellent work!

    Comment by Albertha — 30 September 2013 @ 7:20 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: