How to VBA sends an Async XMLHTTP request?

后端 未结 2 1207
小蘑菇
小蘑菇 2020-12-18 12:32

To get data from a webservice in Excel, I have created an excel addin provide function to get it; user just need type in cell: =sendRequest(\"http://webservice.com\")<

2条回答
  •  难免孤独
    2020-12-18 13:03

    As the downside of the solution stated here, the proper way to get the async return value for the function is to 1) cache your request's url => returned value to a collection/dictionary, and then 2) refresh your formula

提交回复
热议问题