FileName : The full or relative path of the Excel table from which you want to import a sheet. It
can be a file system or ALM path.
SheetSource: The name or index of the sheet in the file that you want to import. Index values
begin with 1.
SheetDest: The name or index of the sheet in the data table that you want to replace with the
SheetSource. Index values begin with 1.
导出:DataTable.ExportSheet(FileName, DTSheet)
FileName: The full file system path of the Excel table to which you want to export a sheet.
DTSheet : The name or index of the run-time Data pane sheet that you want to export.
Index values begin with 1(就是你要导出的表的索引号或者表所在位
置)
DataTable.Value ("LoginResult","login") = result
赋值
关于循环时导入表的覆盖: 加一个判断
rownum = Datatable.GetRowCount
If rownum = 0 Then
DataTable.ImportSheet "D:\User\Desktop\EPM_T2_郝文浩_13章\login_DateTable\用户及登
录结果.xls",1,"login"
End If
关于循环时导出表的覆盖:可将导出操作单独放入一个Action 里面