Close workbook not save

  • Thread starter Thread starter Steved
  • Start date Start date
S

Steved

Hello from Steved

I would like a macro command to close workbook but not
save it.

Thankyou in Advance
 
Steve

Sub CLOSE_BOOK()
ActiveWorkbook.Close SaveChanges:=False 'Or True
End Sub

Gord Dibben Excel MVP
 

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