开发者

Get pivotTable handle from cell in vba

开发者 https://www.devze.com 2023-01-23 07:59 出处:网络
For instance I have a pivot table on every third worksheet that needs to be edited, on the worksheet is 3 pivot tables, I don\'t actually know the name of开发者_Go百科 the table but I know it lies on

For instance I have a pivot table on every third worksheet that needs to be edited, on the worksheet is 3 pivot tables, I don't actually know the name of开发者_Go百科 the table but I know it lies on $N$2, is there anyway to get the name or handle of the pivot table from the cell?


The Range object has a PivotTable property that returns the object you want

Set pt = MySheet.Range("N2").PivotTable
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号