Here is a nice fix to prevent Outlook from sending emails without anything in the subject:
Save yourself the annoyance by following the next steps.
- Open the Visual Basic Editor (in Outlook, press ALT+F11).
- On the left-hand side of the screen, expand the ‘Project1′ (go into ‘Microsoft Office Outlook Objects’ -> ‘ThisOutlookSession’).
- Double click on ‘ThisOutlookSession’
- Paste the following lines of code in the right-hand pane of the screen:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.Subject = "" Then
Cancel = MsgBox("This message does not have a subject." & vbNewLine & "Do you wish to continue sending anyway?", vbYesNo + vbExclamation, "No Subject") = vbNo
End If
End Sub
No comments:
Post a Comment