Item.Save and Item.Close Script causes Outlook 2007 to Crash

G

Guest

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?
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

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").cmbStatus.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
 
S

Sue Mosher [MVP-Outlook]

What type of form? task, contact, etc.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

contact

Sue Mosher said:
What type of form? task, contact, etc.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Any work around for me? Can anyone help please?

Sue Mosher said:
What type of form? task, contact, etc.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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