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

Outlook crashes by applying folder view with Vbscript Write_Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 12th 06, 04:57 PM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 1
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

 




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
view folder size in outlook using a macro john mcmichael Outlook and VBA 0 May 4th 06 04:07 PM
View free/busy not consisten in folder/schedule view & Exclusive l ToĆ n Outlook - Calandaring 0 February 9th 06 02:20 PM
Outlook 2003 MST not applying correctly Trevor Miller Outlook - Installation 3 January 23rd 06 10:25 PM
outlook 2003sp3: applying the inbuilt junkmail filter on existing messages? [email protected] Outlook - General Queries 2 January 18th 06 05:47 PM
Outlook automatic folder categorization with shifting of the whole correspondence into the new built subfolder - VBScript needed Michael Bauer Outlook and VBA 0 January 9th 06 07:00 AM


All times are GMT +1. The time now is 10:36 AM.


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