vba close the excel saving changes inactive workbook without code example Example: excel vba close without saving ActiveWorkbook.Close savechanges:=False