Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Thanks Debra. Can provide some direction on how to implement this code?
I've not done any Excel programming yet. "Debra Dalgleish" wrote: You can use programming to hide the rows with a zero total. For example: '====================================== Sub HidePivotZeroRows() 'hide worksheet rows that contain all zeros Dim rng As Range For Each rng In ActiveSheet _ .PivotTables(1).DataBodyRange.Rows If Application.Sum(rng) = 0 Then rng.EntireRow.Hidden = True Else 'unhide any previously hidden rows rng.EntireRow.Hidden = False End If Next rng End Sub '================================ Sub UnhidePivotRows() 'unhide all rows Dim rng As Range For Each rng In ActiveSheet _ .PivotTables(1).DataBodyRange.Rows rng.EntireRow.Hidden = False Next rng End Sub '==================================== ChrisBusch wrote: How do I hide rows containing zeroes or blanks in pivot tables? -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
updating pivot table to include additional rows | Excel Discussion (Misc queries) | |||
Pivot Table - max rows allowed in data range | Excel Discussion (Misc queries) | |||
Combining Pivot Tables - Summarising data from 100,000 rows | Excel Discussion (Misc queries) | |||
Hiding Rows if the linked rows are blank | Excel Discussion (Misc queries) | |||
Copying Rows when hiding other rows | Excel Worksheet Functions |