PivotField.Hidden property (Excel)

This property is used to hide the individual levels of an OLAP hierarchy. Read/write Boolean.

Syntax

expression.Hidden

expression A variable that represents a PivotField object.

Remarks

Returns True for hidden levels and False for visible (non-hidden) levels.

This property is applicable only to levels of OLAP hierarchies.

For relational data sources and OLAP attributes, this property is always False. Trying to set it to True for an attribute or a relational field will return a run-time error. It's not possible to set this property to True for a level if all other levels of the same hierarchy already have this setting set to True. At least one level of a hierarchy has to have this property set to False. Attempting to do this will return a run-time error.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.