If one forgot to mention subject,while writing an official/personal mail....Then
it can be problematic..at times
To avoid this,here is a simple exercise,one has to carry out: 1. Open MS outlook. 2 Open Visual Basic editor(Alt +F11). 3 Press Ctrl + R. Project 1 will open. 4 Doubleclick on "This Outlooksession".It will open up a code pane on the right hand side. 5 Write following code in the right pane:
Private sub application_itemsend(by valitem 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 Endif Endif End sub 6 Now whenever one tries to send a mail without subject, a pop up will be raised.
|
No responses found. Be the first to respond and make money from revenue sharing program.
|