|
楼主 |
发表于 2009-12-13 20:31
|
显示全部楼层
Private Sub CommandButton26_Click()
Set dmt = WebBrowser1.Document
k = 2
For i = 0 To dmt.all.tags("table").Length - 1
If InStr(dmt.all.tags("table")(i).innerText, "笔订单资料") > 0 Then
Set R = dmt.all.tags("table")(i).Rows
set obj = dmt.all.tags("table")(i)
msgbox "在本地窗口中查看 obj 的那\哪个属性是所需要的,然后自己修改!!!!!!!!!"
stop
Sheet3.Cells(k, 1) = dmt.all.tags("table")(i).Caption.innerText
For j = 0 To R(0).Cells.Length - 1
Sheet3.Cells(j + k, 3) = R(0).Cells(j).innerText
k = k + 1
Next
End If
Next
End Sub |
|