Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CindyM
 
Posts: n/a
Default 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   Report Post  
Dave Peterson
 
Posts: n/a
Default

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   Report Post  
 
Posts: n/a
Default

Works great. Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sheet protection code conflicts with Pivot Table "auto refresh" KG Excel Discussion (Misc queries) 6 December 21st 05 11:16 PM
auto refresh of pivot table Luc Poppe Excel Discussion (Misc queries) 9 September 10th 05 06:02 PM
Pivot table Data refresh SSD1 Excel Worksheet Functions 2 June 17th 05 09:13 PM
Pivot Table Problems Rachel Gonsior Excel Discussion (Misc queries) 3 March 21st 05 07:24 PM
Pivot table refresh Excel GuRu Excel Worksheet Functions 2 February 23rd 05 01:47 AM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"