ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel SaveAs() method (https://www.excelbanter.com/excel-programming/352510-excel-saveas-method.html)

Sandrina

Excel SaveAs() method
 
I'm having trouble saving a workbook. I show a SaveFileDialog, the user
specified where he wants to save the file, and where. When the user clicks on
Save button, I say SaveAs... and do something else with the file (after the
file is saved). Anyway, that's what it should do.

My code for saving is this:

this.SaveAs(fileName, Excel.XlFileFormat.xlXMLSpreadsheet, missing, missing,
false, false, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode. xlNoChange,
missing, false, missing, missing, true);

It simply doesn't save the xls file. Does anybody have any idea why?


All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com