QTP读取EXCEL中的数据

上一篇 / 下一篇  2008-09-11 11:28:15 / 个人分类:QTP技术

'MODULE DEscrīptION:
'USER:
'GOLBAL FUNCTIONS AND VARIABLES DEFINED IN THIS MODULE:
'
'Date        Who      Rev             Comment
'-----------------------------------------------------------------
'
'
'******************************************************************
 Set excelapp=createobject("excel.application")
 Set excelbook=excelapp.workbooks.open("c:\test.xls")
 Set excelsheet=excelbook.worksheets("sheet1")
For i=1 to 4
 For j=1 to 2
 testno1=cstr(excelsheet.cells(i,j))
 msgbox (testno1)
 Next
Next

TAG: QTP技术

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-25  
 123456
78910111213
14151617181920
21222324252627
282930    

我的存档

数据统计

  • 访问量: 1243
  • 日志数: 3
  • 建立时间: 2008-09-11
  • 更新时间: 2008-09-11

RSS订阅

Open Toolbar