|
神啊,真不敢相信,我居然试成功了,代码如下:
============================================================================
SystemUtil.CloseProcessByName "EXCEL.EXE"
DataTable.AddSheet "Sheet1"
DataTable.AddSheet "Sheet2"
DataTable.ImportSheet "C:\test.xls", "Sheet1", "Sheet1"
DataTable.ImportSheet "C:\test.xls", "Sheet2", "Sheet2"
DataTable.GetSheet("Sheet1").GetParameter("A").Value = 30
DataTable.ExportSheet "C:\test.xls", "sheet1"
DataTable.ExportSheet "C:\test.xls", "Sheet2"
=================================================================== |
|