Excel 2003 Pivot Table - Hide Empty Rows Below Subtotal

rickincanada

Board Regular
Joined
Aug 31, 2010
Messages
61
I am currently working with a Pivot Table in Excel 2003 and am trying to find a solution to hide all of the empty rows that appear below the Subtotals in column A. I suspect this likely needs to be done through a macro (maybe on Worksheet_Calculate), but don't have the knowledge to build it.

Here's what my pivot table looks like currently:

_Wzkn60YQ9iqyot3PnXBF_4e9wZ5yoRt2ThcSc4YeHolEkqXtBmHbmKk3jbNfY5zbILfz1b1f592t6I=w1896-h835


What I want to have happen auto-magically is that rows 8 and 27 (and then all other subsequent rows where the value = "") are hidden. I would think that the macro would need to start at A3 and then work down from there as well as it should probably unhide all rows before it starts.

Any help you can offer would be greatly appreciated!!!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You can select the column portion, F5(Goto)-Special-Blanks, then hide. Or apply the specialcells method through vba.
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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