can i auto refresh a linked table data to a pivot table. The linked data is linked to another sheet.
If the source table values change because of formula result change, the linked table change automatically but not the pivot table.
For example, in the data table, the amount is depending on the other data table. (=+Sheet2!E1).
If the change (=+Sheet2!E1), the data table is updated but not the pivot table.
However if i manually update the amount in the data table, the pivot table change automately.
I have below marco in the excel.
Private Sub Worksheet_Change(ByVal Target As Range)
Worksheets("sheet2").PivotTables("pvt").PivotCache.Refresh
End Sub
Bookmarks