我需要每週更改狀態併爲SharePoint中的約100個列表寫入評論。我試圖自動化它。我知道如何使用宏在編輯模式下打開它們,但我不知道如何改變狀態或如何寫一個宏的評論,任何想法?使用宏編輯分享點列表
這裏是我的代碼:
Sub TT()
Dim ie(40) As Object, obj As Object
Dim cislo As String
For i = 0 To 40
If Cells(i + 2, 1).Value = "" Then
Exit Sub
End If
Set ie(i) = CreateObject("Internetexplorer.Application")
ie(i).Visible = True
ie(i).Navigate "http://adress of sharepoint list .com"
Do While ie(i).Busy
Loop
Next i
End Sub
我認爲下面的鏈接可以幫助您獲得導向。 http://sharepoint.stackexchange.com/questions/11426/update-list-from-excel-using-vba – ryguy72
感謝您的回答,但我不認爲,這就是我的意思。我不想在Excel中編輯列表,但在共享點。例如更改狀態,添加註釋等。 –