您的位置:首页 > 编程语言 > Qt开发

【软件自动化测试-QTP实战技能 16】==QTP_调用外部EXCEL数据替换DataTable中的数据

2010-10-19 11:16 465 查看
'Sheet1: The name or index of the sheet in the file that you want to import. Index values begin with
1.

'Action1: 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.ImportSheet "C:/JX/WorkSpace/test.xls","Sheet1","Action1"

Dim xl

Set xl = createobject("excel.application")

xl.Visible = true

xl.Workbooks.Open("C:/JX/WorkSpace/test.xls")

Set xl = nothing
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐