How to save bunch of Excel file as CSV file format without asking for the save as dialog. I don't want this dialog box.
wksht.SaveAs("C:\\Barcodes\\New\\"+ Date + "_" + k +".csv",Excel.XlFileFormat.xlCSV);
How to save bunch of Excel file as CSV file format without asking for the save as dialog. I don't want this dialog box.
wksht.SaveAs("C:\\Barcodes\\New\\"+ Date + "_" + k +".csv",Excel.XlFileFormat.xlCSV);
Use this
wbook.SaveAs("C:\\Barcodes\\New\\"+ Date + "_" + k +".csv",Excel.XlFileFormat.xlCSV);
For more details can see here https://msdn.microsoft.com/de-de/library/microsoft.office.interop.excel._workbook.saveas(v=office.11).aspx#Y114