in reply to Overwriting an excel file

You are saving worksheet but must save workbook.