PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Outlook crashes by applying folder view with Vbscript Write_Event

Reply

Outlook crashes by applying folder view with Vbscript Write_Event

 
Thread Tools Rate Thread
Old 12-06-2006, 04:57 PM   #1
Twardon@gmail.com
Guest
 
Posts: n/a
Default Outlook crashes by applying folder view with Vbscript Write_Event


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

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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