Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default excel 97 crash

Hi
I am trying to handle WorkbookBeforeClose event to close a
workbook, the sample code looks like below

Private Sub App_WorkbookBeforeClose(ByVal Wb As
Excel.Workbook, Cancel As Boolean)
App.EnableEvents = False
Wb.Close savechanges:=False
App.EnableEvents = True
End Sub

steps to crash
1. create a workbook with the above code
2. select enable macros option when prompted
3. create a new work book and type something
4. close new workbook
5. select No when prompted to save changes
6. try to scroll the workbook
Excel97 crashes
it will be very helpful if anybody can throw some light on
this. thanks
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Crash - Help! Delbert Excel Discussion (Misc queries) 13 December 13th 05 10:02 PM
Excel 2003 Crash Delbert Excel Discussion (Misc queries) 0 December 12th 05 08:21 PM
MouseMove causes Excel Crash Pal Excel Programming 2 January 31st 04 01:36 PM
Crash in excel.exe Burak[_2_] Excel Programming 0 November 5th 03 10:55 AM
Excel Crash Seth[_3_] Excel Programming 1 October 31st 03 01:59 PM


All times are GMT +1. The time now is 01:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"