Customized Refresh

Roderick_E

Well-known Member
Joined
Oct 13, 2007
Messages
2,051
I'm thinking about a customized Refresh All that when it encounters overlapping pivots, it will insert rows/columns as needed to allow the refresh to happen instead of a popup telling me it can't overlap. Any ideas how to accomplish or does Excel already have a setting to insert columns/rows up refresh? I know by default it stops from overlapping because you could accidentally overwrite cells, but if they are simply pushed over or down, then any reference to them would still function. Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Ok, alternatively, how about a macro that will insert a specified number of blank rows or columns between pivot tables. So it would need to loop through all the pivot tables in a a workbook, sheet by sheet and see if the designated number of blank rows or columns exist between the pivot tables. Something like:
Code:
For Each wks In Worksheets
For Each pvt In wks.PivotTables
if pvt.TableRange2.rows versus the next pvt.TableRange2.rows then
'insert specified blank rows
endif
if pvt.TableRange2.columns versus the next pvt.TableRange2.columns then
'insert specified blank columns
endif
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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