PivotItems Object
A collection of all the PivotItem objects in a PivotTable field.
Remarks
The items are the individual data entries in a field category.
Example
Use the PivotItems method to return the PivotItems collection. The following example creates an enumerated list of field names and the items contained in those fields for the first PivotTable report on Sheet4.
| Visual Basic for Applications |
|---|
|
Use PivotItems(), where is the item index number or name, to return a single PivotItemobject. The following example hides all entries in the first PivotTable report on Sheet3 that contain "1998" in the Year field.
| Visual Basic for Applications |
|---|
|
See also:
- Excel Object Model Reference
- PivotItems Object Members
- PivotCache Object
- PivotCell Object
- PivotField Object
- PivotFormula Object
- PivotItem Object
- PivotItemList Object
- PivotLayout Object
| index | index |