J
Joe
I have a workbook named "Cost Pools"
There's a sheet named "Pivots"
On that sheet, there are a bunch of pivot tables. I've
given each one a name with the properties dialog.
Right now here's the code I use:
Sheets("Pivots").Select
ActiveSheet.Pivots("Retail").PivotSelect "", xlDataOnly
Selection.ShowDetail = True
ActiveSheet.Name = "Retail"
If I have 50 pivot table on that sheet, I have to repeat
the code 50 times. Here's what I'd like to do but I can't
figure out how:
For each pivot table name in "Pivots"
ActiveSheet.Pivots("name").PivotSelect "", xlDataOnly
Selection.ShowDetail = True
ActiveSheet.Name = "Pivot Table Name"
Next pivot table
Thanks for any help.
There's a sheet named "Pivots"
On that sheet, there are a bunch of pivot tables. I've
given each one a name with the properties dialog.
Right now here's the code I use:
Sheets("Pivots").Select
ActiveSheet.Pivots("Retail").PivotSelect "", xlDataOnly
Selection.ShowDetail = True
ActiveSheet.Name = "Retail"
If I have 50 pivot table on that sheet, I have to repeat
the code 50 times. Here's what I'd like to do but I can't
figure out how:
For each pivot table name in "Pivots"
ActiveSheet.Pivots("name").PivotSelect "", xlDataOnly
Selection.ShowDetail = True
ActiveSheet.Name = "Pivot Table Name"
Next pivot table
Thanks for any help.