Autosave

  • Thread starter Thread starter Liz
  • Start date Start date
L

Liz

When a workbook is closed automatically appears the
message "Do you want to save the changes?" How can I avoid
this message and always answer "No"?
Thank you.
Liz.
 
Hi Liz

In the BeforeClose event use this

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Saved = True
End Sub

Or if you close the file with code

ThisWorkbook.Close False
 

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