![]() |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
I have a customised form which works fine in Outlook 2003 however when I run
it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
What event are you using to run that code? There definitely is a problem with Item.Close in Outlook 2007 RTM; we're trying to figure out how extensive it is.
-- 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 "Rayyan" wrote in message ... I have a customised form which works fine in Outlook 2003 however when I run it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
I am just trying to save and close the form, here is how I am using it.
Sub cmdSave_Click Dim Response,Title CurrentStatus = Item.GetInspector.ModifiedFormPages("MyForm").cmbS tatus.value Title = "Warning" If CurrentStatus = "Submitted" Then Item.Save Item.Close 0 Else Response = Msgbox ("Some message ...",4,Title) If Response = vbYes Then Call cmdSubmit_Click Else Item.Save Item.Close 0 End If End If End sub "Sue Mosher [MVP-Outlook]" wrote: What event are you using to run that code? There definitely is a problem with Item.Close in Outlook 2007 RTM; we're trying to figure out how extensive it is. -- 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 "Rayyan" wrote in message ... I have a customised form which works fine in Outlook 2003 however when I run it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
What type of form? task, contact, etc.
-- 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 "Rayyan" wrote in message ... I am just trying to save and close the form, here is how I am using it. Sub cmdSave_Click Dim Response,Title CurrentStatus = Item.GetInspector.ModifiedFormPages("MyForm").cmbS tatus.value Title = "Warning" If CurrentStatus = "Submitted" Then Item.Save Item.Close 0 Else Response = Msgbox ("Some message ...",4,Title) If Response = vbYes Then Call cmdSubmit_Click Else Item.Save Item.Close 0 End If End If End sub "Sue Mosher [MVP-Outlook]" wrote: What event are you using to run that code? There definitely is a problem with Item.Close in Outlook 2007 RTM; we're trying to figure out how extensive it is. -- 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 "Rayyan" wrote in message ... I have a customised form which works fine in Outlook 2003 however when I run it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
contact
"Sue Mosher [MVP-Outlook]" wrote: What type of form? task, contact, etc. -- 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 "Rayyan" wrote in message ... I am just trying to save and close the form, here is how I am using it. Sub cmdSave_Click Dim Response,Title CurrentStatus = Item.GetInspector.ModifiedFormPages("MyForm").cmbS tatus.value Title = "Warning" If CurrentStatus = "Submitted" Then Item.Save Item.Close 0 Else Response = Msgbox ("Some message ...",4,Title) If Response = vbYes Then Call cmdSubmit_Click Else Item.Save Item.Close 0 End If End If End sub "Sue Mosher [MVP-Outlook]" wrote: What event are you using to run that code? There definitely is a problem with Item.Close in Outlook 2007 RTM; we're trying to figure out how extensive it is. -- 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 "Rayyan" wrote in message ... I have a customised form which works fine in Outlook 2003 however when I run it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
Any work around for me? Can anyone help please?
"Sue Mosher [MVP-Outlook]" wrote: What type of form? task, contact, etc. -- 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 "Rayyan" wrote in message ... I am just trying to save and close the form, here is how I am using it. Sub cmdSave_Click Dim Response,Title CurrentStatus = Item.GetInspector.ModifiedFormPages("MyForm").cmbS tatus.value Title = "Warning" If CurrentStatus = "Submitted" Then Item.Save Item.Close 0 Else Response = Msgbox ("Some message ...",4,Title) If Response = vbYes Then Call cmdSubmit_Click Else Item.Save Item.Close 0 End If End If End sub "Sue Mosher [MVP-Outlook]" wrote: What event are you using to run that code? There definitely is a problem with Item.Close in Outlook 2007 RTM; we're trying to figure out how extensive it is. -- 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 "Rayyan" wrote in message ... I have a customised form which works fine in Outlook 2003 however when I run it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
Item.Save and Item.Close Script causes Outlook 2007 to Crash
You already know the workaround: Don't call Item.Close. That's all we know at this point.
-- 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 "Rayyan" wrote in message ... Any work around for me? Can anyone help please? "Sue Mosher [MVP-Outlook]" wrote: What type of form? task, contact, etc. "Rayyan" wrote in message ... I am just trying to save and close the form, here is how I am using it. Sub cmdSave_Click Dim Response,Title CurrentStatus = Item.GetInspector.ModifiedFormPages("MyForm").cmbS tatus.value Title = "Warning" If CurrentStatus = "Submitted" Then Item.Save Item.Close 0 Else Response = Msgbox ("Some message ...",4,Title) If Response = vbYes Then Call cmdSubmit_Click Else Item.Save Item.Close 0 End If End If End sub "Sue Mosher [MVP-Outlook]" wrote: What event are you using to run that code? There definitely is a problem with Item.Close in Outlook 2007 RTM; we're trying to figure out how extensive it is. -- 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 "Rayyan" wrote in message ... I have a customised form which works fine in Outlook 2003 however when I run it in Outlook 2007, Outlook crashes. I have workedout that the part of script that does it is: Item.Save Item.Close 0 Each line indivitually or together causes Outlook to crash. Anyone any idea? |
All times are GMT +1. The time now is 04:14 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