Interupting SEND function

D

DAVEH

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
 
S

Sue Mosher [MVP-Outlook]

Either use validation formulas for the desired fields, or writte validation code in the Item_Send event handler.
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top