I've been working on an Excel 2007 WB and have had a lot of great help from many. What I am now attempting to do is to Auto refresh a Pivot Table when data in a specific cell is changed. The input is on one sheet and the Pivot table is on a different sheet all in the same workbook.
I found an earlier (2009) thread and attempted it but it is not working. Here is what my background is
Clerk inputs info in worksheet "Payroll Data Input". In cell "W1" of that worksheet a validation list shows the available years. That list is based upon a Pivot table on worksheet "Pay Dates" it is PivotTable2 which starts in cell o4.
What I want it to do is to refresh the data in the Pivot Table when the clerk selects what year they are working on.
Below is the code from an earlier thread here. Anyone see why it isn't working.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim pc As PivotCache
For Each pc In ActiveWorkbook.PivotCaches