0
我試圖加載一個XML文件,我正在使用XML 6.0參考庫。編譯錯誤:賦值左側的函數調用必須返回Variant或Object
錯誤發生在「xDom.load」行(請參見下文)。問題是什麼?
Private Sub run() ' run the whole operation
Dim http_req As http_req: Set http_req = New http_req
Dim xDom As MSXML2.DOMDocument60
Dim url As String: url = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"
Set xDom = New MSXML2.DOMDocument60
xDom.Load = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"
Call find_ClassElement(xDom)
End Sub
謝謝!這是正確的。 – uncool 2014-09-20 23:19:37