use vba to hide rows in pivot table

taigovinda

Well-known Member
Joined
Mar 28, 2007
Messages
2,639
Hi,

I want to be able to very quickly set pivot tables to hide all the rows that are missing data in ANY of the 1 to several data fields.

I'm thinking the best way to do this is to use vba to traverse through all the rows of the pivot table, and hide (i.e., uncheck the "show" box) all of the rows that are missing data in any of the fields.

Can anyone help me out with how to do this?

Thanks!

Tai

p.s.
I want to use this on pivots that are based on many different combinations of dozens of columns and thousands of rows, so I really don't want to add additional columns into the data source and then use them as a dummy variables in the page fields of the pivots.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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