Consulting

Results 1 to 2 of 2

Thread: Don't send mail with blank subject

  1. #1
    VBAX Regular
    Joined
    Jun 2006
    Posts
    15
    Location

    Don't send mail with blank subject

    Hi,
    Can any one help to configure my outlook in such a way that
    if the user forget to mention the subject and click on send button.
    OUtlook should not send and should show a message "Please type subject and try again.."

    Thanks

  2. #2
    VBAX Mentor skatonni's Avatar
    Joined
    Jun 2006
    Posts
    347
    Location
    Try this in the ThisOutlookSession module

    Provided by Sue Mosher at

    http:\\www.eggheadcafe.com/forumarch...st25927864.asp

    [vba]
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim strMsg As String

    Dim res As Long

    If Item.Subject = "" Then

    Cancel = True

    strMsg = "Please fill in the subject before sending."

    MsgBox strMsg, vbExclamation + vbSystemModal, "Missing Subject"

    Item.Display

    End If

    End Sub
    [/vba]
    Last edited by mdmackillop; 07-25-2008 at 04:34 AM. Reason: Link added

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •