|
由于是内网,只能下载HTML做连接
抓A列信息填到B列.
现在就差如何一行行抓还有填上去了.
Public Sub ncmr()
Dim ncmr As String
ncmr = "C:\Users\yueyi\Desktop\yy\11.html"
Dim xmlHttp As Object
Set xmlHttp = CreateObject("MSXML2.XMLHTTP")
With xmlHttp
.Open "GET", ncmr, False
.send
strText = StrConv(.responseBody, vbFromUnicode, &H804)
Do While .readyState <> 4
DoEvents
Loop
Debug.Print Replace(Split(Split(Replace(Split(Split(.responseText, "tbReason")(0), "Rejected Reason")(1), """", ""), "readonly>")(1), "</textarea>")(0), "CrLf", "")
End With
End Sub
|
|