Is it possible with VBA to disable the close button (X) of the Excel-Application?I have found that its possible in Access (seehttp://support.microsoft.com/kb/300688), but can't find any similar forExcel.
Yes.You use the Before close event to trap the attempt to close and setcancel=true unless the close is from your own close function.You have to have a flag which is set by your own close function so that thecancel=true is bypassed..
Thanks a lot pointing me in the right direction.I've got it!