-4

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);
rene
  • 41,474
  • 78
  • 114
  • 152

1 Answers1

-2

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

120196
  • 283
  • 6
  • 14