【发布时间】:2018-01-02 21:08:39
【问题描述】:
我使用以下代码从网站读取和提取数据。但是在具体的URL(http://www.iamf.ir)有问题!
Dim HTML_Content As HTMLDocument
Dim dados As Object
'Create HTMLFile Object
Set HTML_Content = New HTMLDocument
'Get the WebPage Content to HTMLFile Object
With CreateObject("msxml2.xmlhttp")
.Open "GET", "http://www.iamf.ir", False
.send
HTML_Content.body.innerHTML = .responseText
Debug.Print .responseText ' it's OK
Debug.Print HTML_Content.body.innerHTML ' it show nothing! (problem is here)
End With
【问题讨论】: