Outlook blank subject warning

The following code is courtesy email forwards.

Are you forgetting to include a subject while sending an Email through Outlook? well, follow the steps:

1.      Open your outlook

2.      Press Alt+F11. This opens the Visual Basic editor

3.      On the Left Pane, one can see “Microsoft Outlook Objects” or “Project1”, expand this. Now one can see the “ThisOutLookSession”.

4.      Double click on “ThisOutLookSession”. It will open up a code pane.

5.      Copy and Paste the following code in the right pane.(Code Pane)

‘============================================================================

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim strSubject As String

    strSubject = Item.Subject

    If Len(Trim(strSubject)) = 0 Then

        Prompt$ = “Subject is Empty. Are you sure you want to send the Mail?”

        If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, “Check for Subject”) = vbNo Then

                Cancel = True

        End If

    End If

 End Sub

Also, I googled and found the follwing tips for Outlook express. ( I have not tried this)

http://support.microsoft.com/?kbid=216884

Advertisements

57 Responses to Outlook blank subject warning

  1. Franz says:

    Thanks for the tip, I was wondering why such a nice warning in Outlook Express was not included in Outlook 2003!

    But I have a problem anyway: the first time I opened the VB editor, pasted the lines, and closed it, then the warning was working perfectly.

    However, I closed Outlook and a message appeared asking me if I wanted to save something, I don’t remember what… 😦 I selected “yes”, without caring of what precisely I was asked. Bad move!

    Now, when I open Outlook, the warning doesn’t work. If I came back to the VB editor, I can still find the lines I pasted, but without effects on the empty-subject emails… The only thing that looks different is that, the first time, I had only “Project1”, while now the string changed into “Project1(VbaProject.OTM)”.

    As you probably understood, I really have no idea of how VB works. I would really need some help to make it working again!

    Could you please tell me what I missed, and what can I do to come back to the original, working version?

    Thanks a lot,

    Franz

  2. Wooglie says:

    You need to change your macro security to medium. Unfortunately it then asks you every time you start outlook.

  3. Gunnar Carlson says:

    You will need to create a digital signature (selfcert.exe in your office installation)

    Then attach the certificate to you application (by marking ThisOutlookSession in the project pane then select tools-> digital signature)

    Finally restart outlook…

  4. subodh kumar says:

    hello..i tried this code. First time it worked fine but next time it is not working even though i changed the macro security level to “medium”. Could you help me to get rid of this problem???:(

  5. Lorenzo says:

    Thanks for the code, but i have a problem. After cht copy and paste, i see 2 rows red and it doesn’t work. These are the rows:
    Prompt$ = “Subject is Empty. Are you sure you want to send the Mail?”

    If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, “Check for Subject”) = vbNo Then

  6. Lorenzo says:

    I found…I had to change ” with ”
    and than enable medium macro

    THANKS A LOT

  7. Yuriy says:

    this code does not compile because the quotes “” need to be retyped in the editor

  8. D2aew says:

    Great work.
    But then why do we pay heftily to the 95% monopolised company?
    😉

  9. girish says:

    hi
    watch http://www.canaravideo.com which has simmillar topic video clippings

  10. Santosh says:

    Thanks for the code: But for me its workd only for the first time
    then stopped, can any one please help me resolving it

  11. Mwlnawwz says:

    Good luck, , grptyv,

  12. Eziixtmn says:

    This is a best site, , 2788,

  13. Qjbvmkpd says:

    Cool site,
    , 981,

  14. loli says:

    great work great site 10x alolita

  15. xvideos says:

    cool post great work thx xvideo

  16. subhradeep says:

    this does not work dude

  17. porno tv says:

    gdfghgf hgfh j gjhgf j fghf dhgfh fgh fdgh fd tu porno tv

  18. c says:

    comment5, , ccp,

  19. Народ в таких случаях так говорит – Беда не ходит одна.

  20. says:

    comment1, , >:PP,

  21. name says:

    My site is great,

  22. gnumeymbro says:

    Hi, visit my link please, hipgxq, 9516, olffucr, 932970, jczquh, 108, bvsvhyralrw, jvpz, onirx, rkay,

  23. Emil says:

    Ok.. so, if like me when you restart the script no longer works do this.
    1) Make sure you got the script above
    2) the quotes ( ” ” ) have to be normal quotes. So make sure you replace them after you paste that code!
    3) Create your own digital certificate — I googled and found the MS link to do just that: http://office.microsoft.com/en-us/help/HP052495581033.aspx
    Name it whatever, I named it: Outlook_subject
    4) Once that’s done go back to the code window, click Tools, Digital Signature, Choose – and choose that signature you just created. Hit ok, save this project, close it. Close Outlook completely too.
    5) Start up Outlook, you get the security box, click always trust running this macro thing. And you’re done! Try sending a message without body, you’ll get an alert. Now even if you restart outlook it’ll still work.

  24. RaiulBaztepo says:

    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

  25. chris says:

    If I click cancel and had omitted to save my email to drafts beforehand, my email is lost forever. Is there a way to get the email content back? Thanks.

  26. chris says:

    Please ignore my previous post. Silly me: I just realized that the email window was still there… it was just hidden below all my other windows.

  27. OlgushaSunQU says:

    If you’re looking for an anxiety disorder treatment that doesn’t require a trip to the shrink’s office, then you’re in luck. Anxiety and stress relief information and help should be sought in the same way as any other medical assistance. In the early stages, as part of their development, every child experiences some form of anxiety. Anxiety symptoms are displayed in various ways which means mostly only professionals can tell if someone is suffering from an anxiety attack Panic often takes control of our lives because we give it the power to do so. The anxiety is present constantly, and there is no escape from it.

  28. LeoSwan says:

    I also try to breathe slowly and deeply as I’m performing this technique. o Persistent low moods and sadness, a feeling of despondency The therapist can recommend techniques to use in every situation and may even recommend medication if the attacks warrant it. Anxiety symptoms can also manifest themselves in the form of physical ailments or conditions. SSRIs are often the first choice of prescribed medication, and are the most popular. Hypnosis in itself is a state of relaxation that at the same time provides access to your subconscious mind.

  29. Alkseniya says:

    Guys my sister takes part in the competition of the New Wave, please help. Look at this video, I will be very grateful, I hope there are still good people.

    Thanks))))))))

  30. Askella says:

    Hello everyone, today I found a very interesting video farrah abraham sex tape , she really is very sexy?

  31. Kathryn says:

    It’s an remarkable piece of writing designed for all the web people; they will get benefit from it I am sure.

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

%d bloggers like this: