我尝试编写 VBA 来连接 yo Hyperion Essbase 以连接到多个工作表并且连接成功
X = EssVConnect("[Macro.xls] Sheet1, sheet2,sheet3 ", "Uname", "Pwd", "Server", "Applicationname", "DB")
If X = 0 Then
MsgBox ("Essbase connect is successful")
Else
MsgBox ("Essbase connection failed.")
End If
但是要断开与多张工作表的连接,它不能使用下面的代码,它会返回值 0 而不是 -4
Y = EssVDisconnect("Sheet1, sheet2, sheet3")
If Y = 0 Then
MsgBox ("Essbase connect is successful")
Else
MsgBox ("Essbase connection failed.")
End If
请告诉我我必须做哪些更改才能断开与连接的数据库的连接