你能帮忙解决这个问题吗?每当我运行这个宏,它停在:
Dim authResult As Dictionary
Run Code Online (Sandbox Code Playgroud)
出现以下错误消息:编译错误:未定义用户定义的类型.
我以前没有使用过字典类型,我试图从示例宏中重用这段代码.
此脚本的目的是使用excel对网站进行休息调用,以便我可以下载历史数据.我目前卡在登录部分.
Sub Login()
Dim userName As String
Dim password As String
Dim apiKey As String
userName = "username"
password = "password"
apiKey = "key123"
'activityTextbox.Text = ""
'clearData
Dim authResult As Dictionary
Set authResult = restClient.authenticateAccount(userName, password, apiKey)
If Not authResult Is Nothing Then
'appendActivity "Connected"
' Configure Excel to pull streaming updates as often as possible
Application.RTD.ThrottleInterval = 0
' Uncomment for real-time prices - this is very CPU intensive
' Buffer …Run Code Online (Sandbox Code Playgroud)