HI, I have been given a workbook with about 50 PivotCharts on 6 worksheets. Each PivotChart has an associated PivotTable the name and source sheet name of which I can find by right-clicking on the Pivotchart and choosing "select data". However, that's going to take a while. Is there any way I can get the source using VBA? I have found out that I can actually get the name of the PivotTable using something like this: sheets("TOT YEAR VIEW").chartobjects("Chart 1").Chart.PivotLayout.PivotTable
This gives me "PivotTable1". However, the workbook contains several "PivotTable1"s on different sheets so it would help enormously if I could get the sheet name of the source table. Thanks for reading and here's hoping there is a way. John -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel