I have code that saves an excel file in a specific location and a file name that cannot be changed by the user. It works great when the file does not exist and saves without saving. If the file already exists and the user selects it, it also works great. The problem occurs when it already exists, and the user cancels the save. This throws a COMException 0x800A03EC. Any ideas?
Help: Microsoft Excel 12.0 Object Library
excelWorkbook.SaveAs(resultsFilePath, XlFileFormat.xlExcel8);
source
share