使用Excel中的VBA从共享团队中读取数据

发布于 2025-02-03 05:34:44 字数 1357 浏览 4 评论 0原文

我使用VBA创建了一个工具,该工具可以从BigQuery中执行多个拉动,并在Excel内部进行了各种转换和摘要。该工具是一种不断发展的工具,为了确保用户使用该工具的最新版本,我想在“共享团队”页面上保存一个版本文件,该文件将检查该工具,如果需要,请下载最新版本在用户文件夹的工具上。我已经擦洗了网络以获取有关此问题的几种解决方案,但实际上没有一个解决方案。以下是我尝试过的解决方案的链接。问题在于,打开文本文件的连接器似乎与团队的URL无法使用。我需要知道如何完成这项工作。任何帮助将不胜感激。

https://wwww.excel-easy。 com/vba/示例/read-data-from-text-file.html

此解决方案似乎不适用于url,因为我遇到了错误的文件名错误。

https:// chandoo。 org/forum/threads/download-file-from-from-sharepoint and-save-it-in-in-in-system-folder.41779/

问题是,由于某些原因显示下载已完成,但实际上是 。

永远不要移动本地 SharePoint通过ADODB

”使用文本文件连接字符串,但在这里也不成功。

https://www.exceltip.com/import-and-export-and-export-and-export-in-vba/import-data-from -a-text-file-ado-indo-vba-in-microsoft-excel.html

再次,另一个坏名称错误。

有关如何连接到简单文本的任何帮助或建议在团队文件夹中共享的文件将不胜感激。

I have created a tool using VBA that performs several pulls from BigQuery and does a variety of transformations and summarization inside of Excel. The tool is an evolving tool and to make sure that the users are using the most current version of the tool, I would like to have a version file saved on the shared Teams page that the tool would check and if needed, download the newest version onto the tool to the user's folder. I have scrubbed the web for several solutions to this ask but not one that actually works. Below are the links to the solutions I have attempted. The issue is that the connectors for opening text files seem to not work with a URL from Teams. I need to know how to make this work. Any help would be greatly appreciated.

https://www.excel-easy.com/vba/examples/read-data-from-text-file.html

This solution doesn't seem to work with a URL as I get a Bad Filename error.

https://chandoo.org/forum/threads/download-file-from-sharepoint-and-save-it-in-system-folder.41779/

Problem with this one is that the download for some reason shows completed but actually never moves local.

Connecting to Excel file stored on SharePoint via ADODB
https://www.connectionstrings.com/textfile/

I attempted to use this solution using the text file connection string but was not successful here either.

https://www.exceltip.com/import-and-export-in-vba/import-data-from-a-text-file-ado-using-vba-in-microsoft-excel.html

Again, another bad name error.

Any help or advice on how to connect to a simple text file shared in a Teams folder would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文