Interupting SEND function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a custom Outlook form When someone presses the SEND button, I have
some logic to make sure certain items are filled in. If they are not filled
in, I don't want the form to send and I do want the form to remain open.
Is this doable?>
Thanks!
Dave
 
Either use validation formulas for the desired fields, or writte validation code in the Item_Send event handler.
 
To cancel the send, you need to set the return value of the function to False, e.g. Item_Send = False. That should leave the item open and unsent.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top