Thursday, December 20, 2007

No Subject reminder in Outlook Mail

Forgot to mention subject, while writing an official mail and feel bad later???????
Yes…. It's a concern for all…. A mail without a subject brings a bad impression on us.
To avoid this, Just follow the simple steps mentioned below and see the result .

  1. Open your outlook
  2. Press Alt+F11. This opens the Visual Basic editor and then Press Ctrl+R which in turn open Project-Project 1 (left side)
  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) and save it

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


6. Now whenever u try to send a mail without subject, which will raise a pop-up to remind you




Powered by ScribeFire.

7 comments:

Anonymous said...

It's very useful.
Thanks :) !

Anonymous said...

This has plagued us in the past. Thank you for the tip. Now can you please convince Microsoft that it should be part of the base install? Maybe you can sell it to them.

Thanks again!!

kurt said...

Re: No Subject reminder in Outlook Mail
This would be a fantastic improvement, so I installed it according to your instructions.
It does not work for me, Outlook 2007 running under Vista. Messages are sent immediately, whether they have a subject or not.
Did I neglect to do something critical to make this work?

Karla said...

It does not work under outlook 2007 running under vista. Is there any solution?

Abhay said...

Hi Karla,
I have Outlook on Vista and it works perfectly on it.
Please let me know the issue you faced.

Karla said...

Hi Abhay,

Did you try this for outlook 2007?

Karla

Anonymous said...

I also tried this with Vista and Outlook 2007. It did work but then I closed Outlook and then opened again. The code did not save. I noticed in the instructions "ThisOutLookSession".
Would I need to do this each time I opened Outlook??