我正在尝试使用函数调用在 TCOM 中分配单元格值。但我看到打印的确切函数名称。
set application [::tcom::ref createobject "Excel.Application"]
set workbooks [$application Workbooks]
$application DisplayAlerts False
set workbook [$workbooks Open "\\$filename.csv"]
set worksheets [$workbook Worksheets]
set worksheet [$worksheets Item [expr 1]]
set cells_worksheet1 [$worksheet Cells]
$cells_worksheet1 Item 27 B $Attribute
我想替换$cells_worksheet1 Item 27 B $Attribute
到函数返回的$cells_worksheet1 Item 27 B {[getAttribute]}
地方。知道怎么做吗?getAttribute
$attribute