Close workbook not save

S

Steved

Hello from Steved

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

Thankyou in Advance
 
G

Gord Dibben

Steve

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

Gord Dibben Excel MVP
 
S

Steved

Thankyou very much Gord.
-----Original Message-----
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

Top