Move Pivot Table to align with last row of other column

Lochlan 1997

New Member
Joined
Feb 26, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I'm pretty new to using VBA, so please excuse my lack of knowledge or choice of words to describe my question

Alright so I have a;

-Pivot table 1 @ (A25:B29)

-Pivot table 2 @ (A31:B34)

-A regular table @ (D1:K50) ~ this table is constantly changing it's height (row count) could be K50 upto K60 sometimes

Hopefully the above details are clear :)

Okay so I would like to move the two pivot tables so that the bottom row of the lower table aligns with the regular table.

The desired end result would be (IF THE REGULAR TABLE'S BOTTOM ROW IS 50)

-Pivot table 1 @ (A41:B45)

-Pivot table 2 @ (A47:B50)

So I would like to know if there's a vba code to allow this to be done, as the regular table will be constantly updating and changing in height.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,885
Messages
6,175,180
Members
452,615
Latest member
bogeys2birdies

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
Back
Top