通常我使用这段代码来检索VBA中文件夹的内容.但这不适用于sharepoint的情况.我能怎么做 ?
Dim folder As folder
Dim f As File
Dim fs As New FileSystemObject
Set folder = fs.GetFolder("//sharepoint.address/path/to/folder")
For Each f In folder.Files
'Do something
Next f
Run Code Online (Sandbox Code Playgroud)
编辑(经过shahkalpesh的好评):
如果我在Windows资源管理器中输入地址,我可以访问sharepoint.访问sharepoint需要进行身份验证,但它是透明的,因为它依赖于Windows登录.