This is a discussion on Outlook - Mail subject empty alert within the Microsoft forums, part of the Search Engines category; Sometime we forget to mention the mail subject while sending an official mail, a mail without subject might create bad ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Sometime we forget to mention the mail subject while sending an official mail, a mail without subject might create bad impression about the sender. To avoid this go thru the below 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" or Menu – View – Project Explorer and expand that till "This Outlook Session" comes. 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 '================================================= =========================== 6. Save this and now close the VB Code editor and take a breath. From now on, this macro will make sure you do not make the mistake of sending a mail without a subject . No check this functionality in outlook !
__________________ Keep smiling... |
| Sponsored Links |
| |||
| Hi Priyan, But it still seems to be struggling a bit. I just Compiled the code in my Outlook and try to send a mail without subject great ...... it shows me the alert and iam happy. Once i closed the outlook and tried the same otherday but mail sent without subject...Not working all the time, any ideas regarding this?
__________________ -Murali.. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to bold a text in alert or confirm alert box? | $enthil | HTML, CSS and Javascript Coding Techniques | 7 | 10-26-2007 06:24 AM |
| Empty a recycle bin in C# | garunprasad | C# Programming | 2 | 08-25-2007 02:56 AM |
| Access e-mail using Outlook Web Access | gattuso | Server Management | 0 | 07-19-2007 07:20 AM |
| what is the Difference between isset() and empty() . | raj | PHP Programming | 2 | 07-19-2007 01:03 AM |
| Post subject: php_errormsg: How turned it on? | montyauto | PHP Programming | 2 | 07-13-2007 08:18 AM |