我必须通过 vba 宏在 jive 上上传 excel 文档。请让我知道是否可以通过 REST API 或任何其他方法
问问题
896 次
1 回答
0
这可以在 VBA 的命令行模式下使用 Jive 应用程序。请联系您的 Jive 人员以获取此信息。首先你必须下载这个应用程序并将它安装到你的系统中,然后你必须通过Shell命令来调用这个应用程序的参数。
我使用下面的代码来实现这一点。
Public Sub ShellCmd()
Dim strExe As String, strJiveInstanceURL As String, strFilePattern As String
Dim usrID As String, Passwd As String, strcurlExtra As String
strExe = "The Jive exe file path"
strJiveInstanceURL = "https://companyname.jiveon.com"
strFilePattern = "c:/santosh/Test1.xlsx"
usrID = "***" ' your user ID
Passwd = "*******" ' your password
strcurlExtra = "-x http://gateway.****.***:1234 --proxy-user your user ID:Your password -k" ' proxy server settings
Call Shell("""" & strExe & """" & " " & """" & strJiveInstanceURL & """" & " " & """" & _
strFilePattern & """" & " " & "test" & " " & """ """ & " " & """" & "99743" & """" & _
" " & "1 userID Password" & " " & """" & strcurlExtra & """", vbNormalNoFocus)
End Sub
于 2015-09-23T10:57:24.147 回答