Hi,
I am trying to run the marco in the excel sheet using TCL script.
Below code is trying to open multiple csv file and run the marco to combine the 2 csv file into one excel sheet
package require tcom
set excel [::tcom::ref createobj Excel.Application]
set workbooks [$excel Workbooks]
set workbook [$workbooks Open book1.csv book2.csv]
$excel Run marco1
$workbook SaveAs book2.excel
BUT, when i run this script, it cannot find package require tcom.
Please advice
I am trying to run the marco in the excel sheet using TCL script.
Below code is trying to open multiple csv file and run the marco to combine the 2 csv file into one excel sheet
package require tcom
set excel [::tcom::ref createobj Excel.Application]
set workbooks [$excel Workbooks]
set workbook [$workbooks Open book1.csv book2.csv]
$excel Run marco1
$workbook SaveAs book2.excel
BUT, when i run this script, it cannot find package require tcom.
Please advice