Organize all Pivot table in all sheet in a workbook

cooolboy

Board Regular
Joined
Apr 6, 2006
Messages
55
I have few sheets in a workbook with many pivot tables. All pivot tables in sheet are arrange one after another (Row wise). As the sizes of the pivot table are not fixed, I couldn't fix the positions of 2nd, 3rd, 4th....pivot table and so manually go to everysheet and hide/unhide rows between the pivot table as required.

I have found references to find out the last and first cell of each pivot table as below, but I couldn't get a logic of how to organize all tables one after another.

With PT.TableRange1
lngLastRow = .Rows(.Rows.Count).Row
end with

Appreciate your help.

Regards
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,186,662
Messages
5,959,060
Members
438,396
Latest member
Louise Rodway

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top