![]() |
Button in emailed form not working in Outlook 2003
I have developed a form, published it etc.
On it are two buttons which when clicked will run the following code. Sub CommandButton2_Click() myItem.subject = "Yes I will be attending" myItem.to = " myItem.send msgbox "Thank you for your response" End Sub Sub CommandButton1_Click() item.subject = "No I will not be attending" Item.to = " Item.send msgbox "Thank you for your response" End Sub When sent to someone using Outlook 2000, it runs fine (assuming security allows it) and clicking each button sends an email and displays the alert box. When sent to someone using Outlook 2003, it doesn't run the code, even with security set to low. However, when testing it under 2003 it works. Any ideas as to why 2003 recipients can't run the code? |
Button in emailed form not working in Outlook 2003
Published it where? Unless it's in the Organizational Forms library and does not have the "send form definition with item" box checked, it won't work in recent versions, which are much more secure than the original release of OUtlook 2000.
-- 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 wrote in message ups.com... I have developed a form, published it etc. On it are two buttons which when clicked will run the following code. Sub CommandButton2_Click() myItem.subject = "Yes I will be attending" myItem.to = " myItem.send msgbox "Thank you for your response" End Sub Sub CommandButton1_Click() item.subject = "No I will not be attending" Item.to = " Item.send msgbox "Thank you for your response" End Sub When sent to someone using Outlook 2000, it runs fine (assuming security allows it) and clicking each button sends an email and displays the alert box. When sent to someone using Outlook 2003, it doesn't run the code, even with security set to low. However, when testing it under 2003 it works. Any ideas as to why 2003 recipients can't run the code? |
Button in emailed form not working in Outlook 2003
Thanks yet again Sue.
I have published it to the Organizational Forms library and it does have the "send form definition with item" box checked. Still doesn't execute the code though on the recipients end. :( |
Button in emailed form not working in Outlook 2003
Perhaps you misread my earlier post. If the "send form definition with item" box is checked, code will not run for recipients.
-- 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 "kbannon" wrote in message ups.com... Thanks yet again Sue. I have published it to the Organizational Forms library and it does have the "send form definition with item" box checked. Still doesn't execute the code though on the recipients end. :( |
Button in emailed form not working in Outlook 2003
many thanks Sue
|
All times are GMT +1. The time now is 08:41 AM. |
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