T
Torsten Hannerfeldt
Hello!
I have a workbook where I don't want any changes to be
saved. (It is only used to communicate with a database).
I use the Workbook_BeforeClose to close the file without
saving. It works fine when only this workbook is open but
Excel crashes when there is another workbook(s) open.
The code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Close SaveChanges:=False
End Sub
Any suggestions?
/Torsten Hannerfeldt
I have a workbook where I don't want any changes to be
saved. (It is only used to communicate with a database).
I use the Workbook_BeforeClose to close the file without
saving. It works fine when only this workbook is open but
Excel crashes when there is another workbook(s) open.
The code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Close SaveChanges:=False
End Sub
Any suggestions?
/Torsten Hannerfeldt