在 VBA 中使用 WITH 刷新 Excel 2016 数据透视表失败?

问题描述

代码有效:

Activesheet.Pivottables("Pivottable1").PivotCache.RefreshTable

代码不支持,返回错误信息“对象不支持属性方法”:

With Activesheet
   .Pivottables("Pivottable1").PivotCache.RefreshTable
End With

为什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)