首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

QTP读取EXCEL资料

2012-08-21 
QTP读取EXCEL文件QTP读取EXCEL文件?Function getcell(filepath,sheetname,rownum,colnum)Set excobj cre

QTP读取EXCEL文件

QTP读取EXCEL文件

?

Function getcell(filepath,sheetname,rownum,colnum)

Set excobj = createobject("Excel.Application")

Set excfile = excobj.workbooks.open(filepath)

Set excsheet = excfile.worksheets(sheetname)

getcell = excsheet.cells(rownum,colnum)

msgbox getcell

End Function

getcell "d:\1.xls","Sheet2",2,"A"

热点排行