0

我想知道是否有一种方法可以使用宏将数据从 SharePoint 导入 Excel。我想要做的是在我的共享点中有一个库,其中有一个 excel 文档。当我下载文档并打开它时,我想自动从 sharepoint 导入数据并有一些图表。

我尝试做的是使用 SharePoint 功能区导出列表的数据。然后我在记事本中打开了file.dll.iqy,希望能找到导入数据的宏。我发现的是这样的:

WEB
1
http://win-sharepoint:9090/sites/PPMO/_vti_bin/owssvr.dll?XMLDATA=1&List={C51D70F2-4D7B-4F20-AE05-379DA264F685}&View={8399F350-92C7-4942-  B8B0-464A735AFC72}&RowLimit=0&RootFolder=%2fsites%2fPPMO%2fLists%2fStade%20du%20projet

Selection={C51D70F2-4D7B-4F20-AE05-379DA264F685}-{8399F350-92C7-4942-B8B0-464A735AFC72}
EditWebPage=
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
SharePointApplication=http://win-sharepoint:9090/sites/PPMO/_vti_bin
SharePointListView={8399F350-92C7-4942-B8B0-464A735AFC72}
SharePointListName={C51D70F2-4D7B-4F20-AE05-379DA264F685}
RootFolder=/sites/PPMO/Lists/Stade du projet

我试图将它保存为宏,但我得到的结果不是预期的。你知道怎么做吗?

非常感谢

4

1 回答 1

0

In Excel 2010, you can go to Data / Get External Data / From Web

Then you can browse to your SharePoint List and select your table using the helpful arrow icons.

Similarly, you can open the iqy file with Excel (enabling security on the prompt) then save the new worksheet. You can see the iqy file details under Data / Connections.

于 2012-05-14T20:48:07.337 回答