![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: 2007, causes, crash, itemclose, itemsave, outlook, script |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Ads |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
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? |
|
#6
|
|||
|
|||
|
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? |
|
#7
|
|||
|
|||
|
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? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outlook 2k3 Script: Exporting Task item to Excel | news.microsoft.com | Outlook and VBA | 5 | November 8th 06 04:01 PM |
| Outlook 2k3 Script: Pb saving data in custom item | news.microsoft.com | Outlook and VBA | 1 | November 8th 06 02:49 PM |
| Outlook should ask if I want to save a sent item | Jamesy W FBorough | Outlook - Installation | 1 | July 11th 06 09:17 PM |
| why do I get MICROSOFT OFFICE OUTLOOK- COULD NOT SAVE THIS ITEM | screwed up | Outlook - Calandaring | 1 | February 3rd 06 10:46 AM |
| Outlook say 'can't save item' in Calendar | Dan Kohn | Outlook - Calandaring | 0 | January 9th 06 11:00 PM |