Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Cancel Close (http://www.outlookbanter.com/outlook-using-forms/26615-cancel-close.html)

MeMatthew September 11th 06 10:23 AM

Cancel Close
 
I want to cancel the form from sending and closing after the Send
button is pressed can somone help put


Sue Mosher [MVP-Outlook] September 11th 06 02:12 PM

Cancel Close
 
Set the return value of the Send event handler to False:

Function Item_Send()
Item_Send = False
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"MeMatthew" wrote in message oups.com...
I want to cancel the form from sending and closing after the Send
button is pressed can somone help put


MeMatthew September 11th 06 02:47 PM

Cancel Close
 
COOL, 10ks for your help
Sue Mosher [MVP-Outlook] wrote:
Set the return value of the Send event handler to False:

Function Item_Send()
Item_Send = False
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"MeMatthew" wrote in message oups.com...
I want to cancel the form from sending and closing after the Send
button is pressed can somone help put



MeMatthew September 12th 06 09:40 AM

Cancel Close
 
How can i stop the mail from being sent?
MeMatthew wrote:
COOL, 10ks for your help
Sue Mosher [MVP-Outlook] wrote:
Set the return value of the Send event handler to False:

Function Item_Send()
Item_Send = False
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"MeMatthew" wrote in message oups.com...
I want to cancel the form from sending and closing after the Send
button is pressed can somone help put



Sue Mosher [MVP-Outlook] September 12th 06 01:18 PM

Cancel Close
 
That's what the code I posted does.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"MeMatthew" wrote in message oups.com...
How can i stop the mail from being sent?


MeMatthew wrote:
COOL, 10ks for your help
Sue Mosher [MVP-Outlook] wrote:
Set the return value of the Send event handler to False:

Function Item_Send()
Item_Send = False
End Function

"MeMatthew" wrote in message oups.com...
I want to cancel the form from sending and closing after the Send
button is pressed can somone help put




All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com