Macro / close a workbook without saving

C

carl

i am trying to add some code that will close an open
workbook without saving the changes to it.

thank you for you help.
 
T

Ture Magnusson

Carl,

This line of VBA code closes the active workbook
without saving it.

ActiveWorkbook.Close SaveChanges:=False
 
Top