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?