code_junkie

How to make subject field compulsory in Outlook 2007?

Nov 13th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean)
  2.  
  3. If Item.Subject = "" Then
  4. Item.Subject = InputBox("Please do not always forget the subject!")
  5. End If
  6.  
  7. If Item.Subject = "" Then
  8. MsgBox "Won't send this without a subject."
  9. Cancel = True
  10. End If
  11. End Sub
  12.  
  13. Do While Item.Subject = ""
  14. Item.Subject = InputBox("..")
  15. Loop
Add Comment
Please, Sign In to add comment