Hi,
Ik wil graag mbv VBA een overzicht maken de documenten op mn sharepoint.
Volgens google zou dit moeten werken met:
Dim objMyList As ListObject
Dim strSPServer As String
Const LISTNAME As String = "{64FDE45E-0CE0-4C87-A867-9DD352754F26}"
Const VIEWNAME As String = "{B210CE68-A37F-41DC-AE59-099837052E0F}"
' The SharePoint server URL
strSPServer = "http://collaboration.xxxxxxx" & "/_vti_bin"
' Populated wbWebForm with the data from the SharePoint
Set objMyList = wsWebForm.ListObjects.Add(xlSrcExternal, Array(strSPServer, LISTNAME, VIEWNAME), False, xlYes, Range("A1"))
Maar als ik dit probeer krijg ik telkens de error: Application-defined or object-defined error (Error 1004).
Iemand enig idee wat hier fout gaat?
BTW de listname/viewname komen uit de iqy file die ik vanaf de sharepoint gedownload heb.
Dank.
Ik wil graag mbv VBA een overzicht maken de documenten op mn sharepoint.
Volgens google zou dit moeten werken met:
Dim objMyList As ListObject
Dim strSPServer As String
Const LISTNAME As String = "{64FDE45E-0CE0-4C87-A867-9DD352754F26}"
Const VIEWNAME As String = "{B210CE68-A37F-41DC-AE59-099837052E0F}"
' The SharePoint server URL
strSPServer = "http://collaboration.xxxxxxx" & "/_vti_bin"
' Populated wbWebForm with the data from the SharePoint
Set objMyList = wsWebForm.ListObjects.Add(xlSrcExternal, Array(strSPServer, LISTNAME, VIEWNAME), False, xlYes, Range("A1"))
Maar als ik dit probeer krijg ik telkens de error: Application-defined or object-defined error (Error 1004).
Iemand enig idee wat hier fout gaat?
BTW de listname/viewname komen uit de iqy file die ik vanaf de sharepoint gedownload heb.
Dank.
Laatst bewerkt: