2014-09-23 43 views

回答

7

您只需使用:

ActiveCell.PivotTable.Name 

,或者有一點點錯誤處理:

Dim PT as PivotTable 
On Error Resume Next 
Set PT = Activecell.PivotTable 
On Error Goto 0 
If not PT is nothing then msgbox pt.name