Did you paste in worksheet module?
0.JPG
On another thought made modification which would make it bit more dynamic. It assumes there's only 1 pivot table on the sheet and Field names are same as the sample.
In worksheet module.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$4" Then
Call FilterPercentDiff(Target.Value, Target.Parent.PivotTables(1))
End If
End Sub
In Standard module.
Sub FilterPercentDiff(fval As Double, pvt As PivotTable)
Application.ScreenUpdating = False
With pvt.PivotFields("NAED - Desc")
.ClearAllFilters
.PivotFilters.Add2 Type:=xlValueIsGreaterThanOrEqualTo, _
DataField:=pvt.PivotFields("Percent Difference "), _
Value1:=fval
End With
Application.ScreenUpdating = True
End Sub
Bookmarks