I found this code online and I have tried to use it on my worksheet but the pivot table filter is not changing to match the value in cell
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim xPTable As PivotTable
Dim xPFile As PivotField
Dim xStr As String
On Error Resume Next
If Intersect(Target, Range("I3")) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
Set xPTable = Sheet6.PivotTables("PivotTable3")
Set xPFile = xPTable.PivotFields("Customer")
xStr = Target.Text
xPFile.ClearAllFilters
xPFile.CurrentPage = xStr
Application.ScreenUpdating = True
End Sub