使用Office Excel JavaScript API更新可透视数据源

发布于 2025-02-11 05:16:20 字数 741 浏览 2 评论 0原文

我想使用Excel JavaScript API来更新现有的Pivottable的数据源,该数据源将是与Pivot表同一工作簿中的另一张表中的一个范围。我只找到了文档,该文档显示了如何定义upottable的数据源时, excel.pivottable?view = excel-js-preview#excel-excel-excel-excel-pivottable-getDataSourcestring-ember(1)“ rel =” nofollow noreferrer“>创建不更改现有的可互动的的数据源。

开发Excel com ADD-IN 和使用 vba ,所以我很惊讶到目前为止在JavaScript API文档中没有看到它的示例。

有谁知道如何使用Excel JavaScript API更新现有 数据源?

I want to use the Excel JavaScript API to update an existing PivotTable's data source, which will be a range in another sheet in the same workbook as the pivot table. I've only found documentation that shows how to define a PivotTable's data source when creating a new pivot table, not changing an existing PivotTable's data source.

It was possible to change an existing pivot table's data source when developing an Excel COM add-in and when using VBA, so I'm surprised to not see an example of it in the JavaScript API documentation so far.

Does anyone know how to update a existing PivotTable's data source using the Excel JavaScript API?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜唯美灬不弃 2025-02-18 05:16:20

当前,您要求的功能:更新现有的透视性数据源不是产品的一部分。也许您可以在此处添加您的请求: Microsoft 365开发人员平台创意论坛

Currently, the feature: updating an existing PivotTable's data source, you requested, is not a part of the product. Maybe you can add your request here:Microsoft 365 Developer Platform Ideas Forum.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文