我正在尝试在 Excel 2007 中编写一个 cls,这是代码:
Dim JiraService As MSXML2.XMLHTTP60
Set JiraService = New MSXML2.XMLHTTP60
JiraService.Open "GET", "URL", False
JiraService.SetRequestHeader "Content-Type", "application/json"
JiraService.SetRequestHeader "Accept", "application/json"
JiraService.Send
sRestResponse = JiraService.ResponseText
MsgBox sRestResponse
我收到一个编译错误,表明 Set 似乎无效。
它基本上说外部程序无效。
谁能帮我吗?