用VBA隐藏数据透视表 [英] Hide a pivot table with VBA
问题描述
我尝试访问:
.PivotTables(index).Visible
但是没有可见
属性为数据透视表
对象。
如果用户更改了一些复选框,我需要隐藏这些数据透视表。也许我可以把它们隐藏在一个白盒子后面,但在我看来,这不是一个很好的解决方案。
如果你不能帮我,那我会做它与白盒子。
提前非常感谢你的答案...
尝试:
.PivotTables(index).TableRange2.EntireRow.Hidden = True
这将隐藏数据透视表中的所有行
您还可以通过隐藏列来实现此目的
.PivotTables(index).TableRange2.EntireColumn.Hidden = True
How can I hide a pivot-table with VBA?
I tried accessing:
.PivotTables(index).Visible
But there is no Visible
property for the PivotTable
object.
I need to hide these pivot-tables if the user changes some check-boxes. Maybe I can hide them behind a white box, but in my opinion, this isn't a good solution.
If you can't help me, then I would do it with the white box.
Thank you very much in advance for your answers...
Try:
.PivotTables(index).TableRange2.EntireRow.Hidden = True
This will hide all the rows in the pivot table
You could also achieve this by hiding columns
.PivotTables(index).TableRange2.EntireColumn.Hidden = True
这篇关于用VBA隐藏数据透视表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!