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?