A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 17th 06, 04:13 AM posted to microsoft.public.outlook.program_forms
Rayyan
external usenet poster
 
Posts: 4
Default 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?
Ads
  #2  
Old November 17th 06, 02:12 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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?

  #3  
Old November 17th 06, 09:41 PM posted to microsoft.public.outlook.program_forms
Rayyan
external usenet poster
 
Posts: 4
Default 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?


  #4  
Old November 17th 06, 09:53 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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?


  #5  
Old November 17th 06, 11:39 PM posted to microsoft.public.outlook.program_forms
Rayyan
external usenet poster
 
Posts: 4
Default 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?


  #6  
Old November 23rd 06, 01:36 AM posted to microsoft.public.outlook.program_forms
Rayyan
external usenet poster
 
Posts: 4
Default 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?


  #7  
Old November 25th 06, 03:14 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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?


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 12:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.