Macro / close a workbook without saving

  • Thread starter Thread starter carl
  • Start date Start date
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.
 
Carl,

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

ActiveWorkbook.Close SaveChanges:=False
 
Back
Top