如何通过vbamacros在jive上上传excel文件?

我必须通过vbamacros在jive上载excel文档。 请通过REST API或其他方法告诉我

这可以在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