hy. i use this code in my sheet :
that make an automatic update for the pivottable1 from sheet 1 , centralizator.xlsm file. but when i try to make a new pivot table - pivottable2 - in another workbook the formula dont work. i get error: out of range. so...some help?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Workbooks("centralizator.xlsm").Worksheets("Sheet1").PivotTables("PivotTable1").PivotCache.Refresh
End Sub
Last edited by a moderator: