mato01
asked on
Worksheet randomly freezes on on close when using exit button.
I have a worksheet with vba code that works great, except that sometimes if you use the X button to close the file, it will freeze and I get the error message "Microsoft Excel" has stopped working. What could be the cause. I don't get any errors when I debug the code.
put an error handler in the BeforeClose event of ThisWorkbook
On Error Resume Next
Thisworkbook.Save
On Error Resume Next
Thisworkbook.Save
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If this produces no results, you can post your code or file to give us something to work with.