共用方式為


Excel) (PivotItemList 物件

指定之樞紐分析表中所有 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 支援與意見反應