| 发表于:2007-08-04 09:57:591楼 得分:0 |
sorry,没看到你所说的内容. 另外还要看你想用什么方法来取,直接在ie上就困难些,如果自己用webbrowser或者inet来取,那就比较简单.只要分析对应的html,instr方法或者用html对象方式 如以下程序为循环读取网页中表格的内容 dim tables as ihtmlelementcollection set tables = webbrowser2.document.getelementsbytagname( "table ") '循环出tagname为table的表格元素 dim table1 as htmltable for each table1 in tables if left(table1.innertext, 2) = "字段 " then '找出字段中头两个字符是 "字段 "的表格 dim row as htmltablerow, cell as htmltablecell for i = 1 to table1.rows.length - 1 ' 逐行处理 set row = table1.rows(i) row.cells(j).innertext '读取指定列的内容 next end if next | | |
|