Differences between XMLHTTP and ServerXMLHTTP

后端 未结 4 913
心在旅途
心在旅途 2020-12-08 21:59

I\'m trying to write an Excel add-in that can get data from a web service into Excel.

To use it, the user just needs to type a function name provided by the add-in.

4条回答
  •  爱一瞬间的悲伤
    2020-12-08 23:04

    What really helped me was that.

    After defining Object:

    Dim objHTTP As Object
    
    Set objHTTP = createObject("MSXML2.ServerXMLHTTP")
    ...
    

    Then include these two lines:

    ' --- Disregard any Proxy Settings and go straight to the IP address
    
        objHTTP.SetProxy 1
    

提交回复
热议问题