Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Auto refresh pivot table on Save
Hi,
I saw macros on how to refresh pivot table when worksheet is selected. But I am looking for reference code on how to refresh pivot tables on entire workbook when I save the file. |
#2
|
|||
|
|||
Maybe adding code behind the ThisWorkbook module:
Option Explicit Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Me.RefreshAll End Sub CindyM wrote: Hi, I saw macros on how to refresh pivot table when worksheet is selected. But I am looking for reference code on how to refresh pivot tables on entire workbook when I save the file. -- Dave Peterson |
#3
|
|||
|
|||
Works great. Thanks.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sheet protection code conflicts with Pivot Table "auto refresh" | Excel Discussion (Misc queries) | |||
auto refresh of pivot table | Excel Discussion (Misc queries) | |||
Pivot table Data refresh | Excel Worksheet Functions | |||
Pivot Table Problems | Excel Discussion (Misc queries) | |||
Pivot table refresh | Excel Worksheet Functions |