我需要通过VBA将IBM Connections活动导出到csv文件。你有这方面的经验吗?可通过单击编辑活动导出活动->导出手动完成此操作
编辑:是的,我正在使用IBM Connections,在浏览器中进行网页交互。当我使用inspect元素时,我看到导出按钮的代码如下
<input class="lotusBtn" dojoattachpoint="exportAct_AP" value="Export" dojoattachevent="onclick:exporter" type="button"> 所以我尝试了这样的东西,但我仍然不能完全识别点击操作:
Sub IEACObject2()
Dim i As Long
Dim objCollection As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "https://w3-connections.ibm.com/activities/service/html/mainpage#activitypage,25e2e3b1-c4e9-4448-95ae-b72432871095"
Do While IE.Busy
DoEvents
Loop
Set objCollection = IE.Document.getElementsByTagName("input")
i = 0
While i < objCollection.Length
If (objCollection(i).Type = "button" And objCollection(i).Value = "Export") Then
objCollection(i).Click
End If
i = i + 1
Wend
Set IE = Nothing
End Sub发布于 2016-06-21 22:45:59
发布于 2016-07-21 01:33:25
可以使用atom提要(XML):https://YOUR-CONNECTIONS-SERVER/activities/service/atom2/descendants?nodeUuid=YOUR-ACTIVITY-UID
在每个活动中都有一个此提要的按钮
我确信VBA能够处理(atom) XML
https://stackoverflow.com/questions/37901432
复制相似问题