MSXML2.XMLHTTP send method works with early binding, fails with late binding

前端 未结 3 1390
悲哀的现实
悲哀的现实 2020-12-16 02:41

The code below works. But if I comment out the line Dim objRequest As MSXML2.XMLHTTP and uncomment the line Dim objRequest As Object it fails with

3条回答
  •  庸人自扰
    2020-12-16 03:04

    If you use the Dim objRequest As Object then you would need to code:
    Set objRequest = CreateObject("MSXML2.XMLHTTP")

提交回复
热议问题