XLA Routines: EE_PivotTurnOffNonBlank
Sub EE_PivotTurnOffNonBlank(pvtField) 'http://excelexperts.com/xla-routines-eePivotTurnOffNonBlank for updates on this sub routine ' turns off non-blank items from pivot table ' assumes 1 pivot on page, no error checking Dim pvtItem pvtField.CurrentPage = "(All)" pvtField.EnableMultiplePageItems = True For Each pvtItem In pvtField.PivotItems If pvtItem.Name = "(blank)" Then pvtItem.Visible = True Else pvtItem.Visible = False End If Next End Sub
»
- Nick's blog
- Login or register to post comments
- 7219 reads
Recent comments
5 years 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago