0
I need all the dynamic tables in my spreadsheet to be updated every time I select one of my worksheets that serves as Dashboard. I used the most logical code, but I think something is missing, since the macro does not run, since it returns "compilation error" to PivotTables
:
Private Sub Worksheet_Activate()
ThisWorkbook.Sheets.PivotTables.RefreshTable
End Sub
It worked perfectly! Thank you!
– J. L. Muller