Hello,
I have the following macro which changes the CurrentPage based on what is in cell A1 for TWO different pivot tables:
Sub Testing()
ActiveSheet.PivotTables(“PivotTable2”).PivotFields(“Expense Category”). _
CurrentPage = Sheet1.Range(“A1”).Value
ActiveSheet.PivotTables(“PivotTable3”).PivotFields(“Expense Category”). _
CurrentPage = Sheet1.Range(“A1”).Value
End Sub
I’d like to have the macro automatically run when cell A1 is changed. I’m trying to avoid having the user change the CurrentPage on BOTH pivot tables (or they might forget to change both pivot tables). Does anyone know how I need to tweak the macro to make it do this? Thank you!!