Closing down workbooks

  • Thread starter Thread starter DonB
  • Start date Start date
D

DonB

I have produced a workbook which has a significant number
of macros, one of which is to close the workbook, first
checking if it has been saved and then closing if saved.
The problem is that if the user, instead of using this
facility clicks the Excel close cross, the workbook closes
without saving and without the usual Excel message box
asking if the workbook is to be saved. Is there any way
that any of my macros may be disabling this and/or is
there any way of restoring it.

Many thanks in anticipation

DonB
 
Hello DonB
Unfortunately if your user has disabled macros while opening your workbook
there is no workaround.
If this is not the case, you can use the Worbook_BeforeClose event to force
saving changes.

HTH
Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top