Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 如何使用VBA读取安全的sharepoint目录?_Excel_Vba_Sharepoint_Https - Fatal编程技术网

Excel 如何使用VBA读取安全的sharepoint目录?

Excel 如何使用VBA读取安全的sharepoint目录?,excel,vba,sharepoint,https,Excel,Vba,Sharepoint,Https,我正在尝试编写一个宏来连接到https sharepoint目录并读取目录中包含的文件列表(这样我就可以解析文件名,然后打开相应的文件名并从中读取一些数据) 到目前为止,我已经尝试: Set folder=fs.GetFolder似乎 使用http sharepoint,但不是 https:sharepoint getChildren()在这里不起作用。该目录以简单格式返回 记录(尽管它实际上是一个包含子文件夹和文件的复杂记录,但应该有子文件夹和文件) 连接到sharepoint上的exce

我正在尝试编写一个宏来连接到https sharepoint目录并读取目录中包含的文件列表(这样我就可以解析文件名,然后打开相应的文件名并从中读取一些数据)

到目前为止,我已经尝试:

  • Set folder=fs.GetFolder
    似乎 使用http sharepoint,但不是 https:sharepoint
  • getChildren()
    在这里不起作用。该目录以简单格式返回 记录(尽管它实际上是一个包含子文件夹和文件的复杂记录,但应该有子文件夹和文件)
  • 连接到sharepoint上的excel文档,然后调用共享工作区功能。这不会返回目录中的任何文档,即使目录中还有其他几个文件

是否有人在安全的https sharepoint目录上成功实现了此功能???

sharepoint公开Web服务。您可以使用这些来迭代库

Sharepoint 2010还提供托管客户端对象模型

这将满足您的要求:

如果您想要的文件位于文档库中,您可以使用WebDAV通过以下方式访问它们: \sp.example.com\sites\thesite\doclib\foldername