SanjayGMusafir
Well-known Member
- Joined
- Sep 7, 2018
- Messages
- 1,503
- Office Version
- 2021
- Platform
- Windows
Hi Experts
I'm using following code to filter blank rows. The code deals with two Pivot tables simultaneously based on a same table.
But the code is not filtering blank rows.
Please help
Thanks a lot
I'm using following code to filter blank rows. The code deals with two Pivot tables simultaneously based on a same table.
But the code is not filtering blank rows.
Please help
Thanks a lot
VBA Code:
'To Filter Blank Records
On Error Resume Next
With ActiveSheet.PivotTables("MFPlan").PivotField("Name").PivotItems("(blank)").Visible = False
End With
With ActiveSheet.PivotTables("MFAnalysis").PivotField("Plan").PivotItems("(blank)").Visible = False
End With