ActiveWorkbook.Close

  • Thread starter Thread starter dallas
  • Start date Start date
D

dallas

Hi

Sub stang()
ActiveWorkbook.Close
End Sub

Is it possible to close the Workbook without get the question
if you want to save the Workbook or not?


Regards
dallas
 
Hi

ActiveWorkbook.Close True ' false = not save and true = save
 
Sub stang()
ActiveWorkbook.Close SaveChanges:=False
End Sub

or change it to True if you do want to save changes.
 

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