![]() add error/exception handling code as desired ![]() be sure ComObj and Variants units are included in the "uses" clauseĮxcelFileName := 'C:\PhysiologyWeb\delphi_code_examples\excel_file.xlsx' //replace file name with the name of your fileĮxcelFileNameNew := 'C:\PhysiologyWeb\delphi_code_examples\excel_file_new.xlsx' //replace file name with the name of your fileĮxcelApplication := CreateOleObject( 'Excel.Application') Procedure TForm1.OpenAndModifyAnExistingExcelFileAndSaveAs(Sender: TObject) ĮxcelApplication, ExcelWorkbook, ExcelWorksheet: Variant
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |