|
楼主 |
发表于 2015-5-11 08:31
|
显示全部楼层
jinsha2002 发表于 2015-5-4 21:35
照瓢画不了符,是我的要求没说清楚,再顶一次请求老师帮助
1. 6889051这期比赛,成绩还没出来(5.6出成绩 ...
没时间,仅做一个示例
Sub t()
Dim Html As Object, DB As Object, a, i, s
Set Html = CreateObject("htmlfile")
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", " http://www.55188.com/viewthread. ... amp;_=1431296439020", False
.send
Html.body.innerhtml = "<table>" + .responsetext + "</table>"
End With
Set DB = Html.all.tags("table")(0).Rows
'以下代码仅作一个输出示例
For Each a In DB
For i = 1 To a.Cells.Length - 1
s = s + Chr(9) + Trim(a.Cells(i).innertext)
Next
s = s + Chr(10)
Next
MsgBox s '
End Sub
|
|