PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
Outlook crashes by applying folder view with Vbscript Write_Event
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
Outlook crashes by applying folder view with Vbscript Write_Event
![]() |
Outlook crashes by applying folder view with Vbscript Write_Event |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello everybody,
I devoleped a form for which In-Cell editing would create undesireable changes in data. Because of the I applied Sues Moshers Workaround to disable In-Cell Editing: (http://www.outlookcode.com/codedetail.aspx?id=79) See below: <code> Sub Item_Open blnOKToSave = True End Sub Sub Item_Write() If Not blnOKToSave Then Set objExplorer = Application.ActiveExplorer objExplorer.CurrentView = "Aufgabenansicht (ohne Bearbeiten)" '### ERRORLINE! Item_Write = False End If End Sub </code> I found out, that the changes I did to the fields in In-Cell View were restored by resetting the view or by actualizing it switching to another folder and back. I do not want the users to change the default view anyway. That brought me to the idea of restoring the view everytime a user tries to change an In-Cell value. ^^see code snippet above. The problem is now, that outlook completely crashes after running the errorline marked above. I don't mean a script error on Line yada yada. - There's an Outlook-Crash and a request for an Error-Report. Can you imagine why? However. On Outlook restart somehow the view I selected in the Errorline is show. Maybe because it's the default-view. Don't know. Any help is greatly appreciated. regards, Tobias Twardon |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

