Compile Error: Function call on left-hand side of assignment must return Variant or Object



I'm trying to load an XML file, I'm using the XML 6.0 reference library.


The error occurs in the "xDom.load" line ( see below ). What can the issue be?



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://ift.tt/1hdt40r"

Set xDom = New MSXML2.DOMDocument60
xDom.Load = "http://ift.tt/1hdt40r"

Call find_ClassElement(xDom)

End Sub

No comments:

Post a Comment