返回一个 PivotItem 对象,该对象代表包含指定区域左上角单元格的数据透视表数据项。
expression.PivotItem
expression 必需。该表达式返回“应用于”列表中的对象之一。
本示例显示包含 Sheet1 中活动单元格的数据透视表数据项的名称。
Worksheets("Sheet1").Activate MsgBox "The active cell is in the item " & _ ActiveCell.PivotItem.Name