数据透视表的值现在很奇怪

发布于 2024-08-05 19:51:12 字数 175 浏览 2 评论 0原文

在 Excel 2003 中,我有一个宏意外地尝试选择不存在的页面字段项(纽约)。这将当前选择的页面字段(阿拉巴马州)重命名为我尝试选择的值(纽约)。

我现在有 3 或 4 个值是错误的。有没有办法将这些数据透视表值刷新为正确的值而无需从头开始重新创建数据透视表

谢谢

In Excel 2003, I have a macro that accidentally tried selecting a page field item (New York) that didn't exist. This renamed the currently selected page field (Alabama) to the value I tried to select (New York).

I now have 3 or 4 values that are now wrong. Is there a way to refresh these pivot table values to the correct values without recreating the pivot table from scratch?

Thanks

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

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

发布评论

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

评论(1

久而酒知 2024-08-12 19:51:12

使用此代码 -

Sub Clean_AllPivotsOnSheet()
Dim pt As PivotTable
For Each pt In ActiveSheet.PivotTables
pt.PivotCache.MissingItemsLimit = xlMissingItemsNone
Next pt
End Sub

然后刷新数据透视表。

Use this code -

Sub Clean_AllPivotsOnSheet()
Dim pt As PivotTable
For Each pt In ActiveSheet.PivotTables
pt.PivotCache.MissingItemsLimit = xlMissingItemsNone
Next pt
End Sub

Then refresh the Pivot Table.

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