共用方式為


PivotItemList 物件 (Excel)

指定樞紐分析表中所有 PivotItem 物件的集合。

註解

每一個 PivotItem 都代表樞紐分析表欄位中的項目。

使用 PivotCell 物件的 RowItemsColumnItems 屬性來傳回 PivotItemList 集合。

範例

傳回 PivotItemList 集合之後,您可以使用 PivotItems 物件的 Item 方法來識別特定的 PivotItem 清單。

下列範例會為使用者顯示與 B5 儲存格相關的 PivotItem 清單。 本範例假設使用中工作表上有一份樞紐分析表。

Sub CheckPivotItemList() 
 
 ' Identify contents associated with PivotItemList. 
 MsgBox "Contents associated with cell B5: " & _ 
 Application.Range("B5").PivotCell.RowItems.Item(1) 
 
End Sub

方法

屬性

另請參閱

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應