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

Similar Threads

Close excel do not save 2
To save and close 5
106% to this please 6% 7
I do not want the minus sign 5
Border Cells 4
I forgot how to duplicate SCH 051 2
Compare A&B columns with C&D columns 4
Insert a Decimal 3

Top