Cancelling beforequit crashes Excel 2004 v.X

A

Aaron Graham

I have just found a bug in both v.X and 2004.
Easy to reproduce:
1.) create new WB
2.) add a Workbook_BeforeClose macro that sets cancel = true
3.) tell Excel to quit, either by choosing menu item or Command+Q

Even though I have set cancel = true Excel still quits, and some times
it crashes.
 
Top