I am using the below code to update pivot another pivot table filter off a cell value that is chosen from a slicer on another sheet. It works but I have to go into the sheet and click on the cell range in A23 in order for it to update my other pivot tables. How to I get this to update pivot table 3 without clicking on the cell.. My end user will be using a slicer to change the data on the dashboard and this tab will be hidden so that pivot table will not update.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Update by Extendoffice 20180702
Dim xPTable As PivotTable
Dim xPFile As PivotField
Dim xStr As String
On Error Resume Next
If Intersect(Target, Range("a23:a28")) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
Set xPTable = Worksheets("Calculatins").PivotTables("PivotTable3")
Set xPFile = xPTable.PivotFields("Skill")
xStr = Target.Text
xPFile.ClearAllFilters
xPFile.CurrentPage = xStr
Application.ScreenUpdating = True
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Update by Extendoffice 20180702
Dim xPTable As PivotTable
Dim xPFile As PivotField
Dim xStr As String
On Error Resume Next
If Intersect(Target, Range("a23:a28")) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
Set xPTable = Worksheets("Calculatins").PivotTables("PivotTable3")
Set xPFile = xPTable.PivotFields("Skill")
xStr = Target.Text
xPFile.ClearAllFilters
xPFile.CurrentPage = xStr
Application.ScreenUpdating = True