Use the save features in Excel. Code: Saves () function;
C # implement code is: ???? xbk.saveas (filename, missing.value, ????? missing.value, missing.value, ????? missing.value, missing.value, ???? EXCEL.XLSAVEACCESSMODE.XLSAVEACCESSMODE.XLEXCLUSIVE, MISSING.VALUE, ????? Missing.Value, missing.value, ????? missing.value, missing.value); where: XBK is: the current active Workbook.