Private Sub Application Itemsend(Byval Item As Object, Cancel As Boolean)

Private Sub Application Itemsend(Byval Item As Object, Cancel As Boolean)

<p>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim lngRes As Long If InStr(1, UCase(Item.Body), "ATTACH") <> 0 Then If Item.Attachments.Count = 0 Then lngRes = MsgBox("'Attach' in body, but no attachment - send anyway?", _ vbYesNo + vbDefaultButton2 + vbQuestion, "You asked me to warn you...") If lngRes = vbNo Then Cancel = True End If End If End Sub</p><p>Private Sub Application_ItemSending _ (ByVal Item As Object, Cancel As Boolean) Dim strMessage As String Dim lngRes As Long If Item.Subject = "" Then Cancel = True strMessage = "Please fill in the subject before sending." MsgBox strMessage, _ vbExclamation + vbSystemModal, "Missing Subject" Item.Display End If End Sub</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us