English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

If you are using Microsoft outlook,

Here are the steps which reminds u that there is no subject :-

Open your outlook

Press Alt+F11. This opens the Visual Basic editor

On the Left Pane, one can see "Microsoft Outlook Objects", expand this. Now one can see the "ThisOutLookSession".

Click on "ThisOutLookSession".

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(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



Save this and now close the VB Code editor. From now on, this macro will make sure you do not make the mistake of sending a mail without subject.


Njoy

ALMIGHTY

2007-01-09 17:47:06 · answer #1 · answered by ALMIGHTY 3 · 0 0

fedest.com, questions and answers