VB Code:
Sub FilterPivot()
Dim PvtFld As PivotField
Dim PvtItem As PivotItem
Dim CustomerRange As Range
Dim ChkCount As Integer
Set PvtFld = Worksheets("PTable").PivotTables(1).PivotFields("client name")
Set CustomerRange = Worksheets("PTable").Range("f1:f5")
For Each PvtItem In PvtFld.PivotItems
ChkCount = Application.WorksheetFunction.CountIf(CustomerRange, PvtItem.Name)
If ChkCount = 0 Then
PvtItem.Visible = False
Else
PvtItem.Visible = True
End If
Next PvtItem
Set PvtItem = Nothing
Set PvtFld = Nothing
End Sub