My aim is to have pivotTables that would refresh automatically when there are changes in related data. I managed to create a macro which does this when the worksheet is visited, see below.
How should I modify the macro so that the pivotTables would autorefresh itself when there's a change in corresponding data so that the unnecessary clicking back and forth could be avoided? I have multiple worksheets for "raw data" and then all the pivotTables are in one separate sheet.
Thank you in advance for any help.
Bookmarks