Outlook Blank Subject Field
Posted on 2004-09-20
I need to retrict Outlook from allowing a blank subject to be sent and have located a similar issue answered in Experts Exchange, confirming inserting the following code after pressing ALT & F11. However ALT & F11 opens a blank Visual Basic screen and I am not sure how to complete the process from here. Alternatively is there a simpler way of achieving the same result?
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Len(Item.Subject & vbNullString) = 0 Then
MsgBox "Please enter a Subject"
Cancel = True