LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Pivot Table(s) - refresh in sheet - macro - automate

Robert,

Perhaps it is because two or more of your pivot tables share a data table.
Updating one pivot table will update all pivot tables based on that data
table, and perhaps cause a cascade effect (though here I am just guessing -
I rarely use more than one data table in a workbook, and having the pivot
tables update prematurely isn't a big deal).

If it is causing you problems, you might want to split your workbook up....

Bernie


"pepenacho" wrote in message
...
Bernie:

All the stuff worked. There seems to be one minor subtle outcome with this
sub. I have 4 tables in my Excel file and about 8 Work Sheets that have
PivotTables, which feed from the tables.

In each Work Sheet I have a button that calls a procedure in a Module
called
RefreshAllPivots

Sometimes this seems to refresh all PivotTables in all the Work Sheets,
and
sometimes in just that one specific one. What's the catch, I
trouble-shooted
this to kingdom come and can't figure it out?

Sub RefreshAllPivots()
Dim myPT As PivotTable
For Each myPT In ActiveSheet.PivotTables
myPT.PivotCache.Refresh
Next
End Sub


Thanks,
Robert





 
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
How to refresh the pivot table while the excel sheet in shared? Nagarajan Excel Worksheet Functions 0 January 22nd 09 04:19 PM
Refresh Pivot Table when Sheet is PW Procted Mayte Excel Worksheet Functions 1 June 13th 08 02:25 AM
Refresh pivot table on protected sheet richzip Excel Discussion (Misc queries) 3 January 18th 08 08:21 PM
Pivot Table Refresh Deletes Range On Different Sheet TMore Excel Discussion (Misc queries) 0 August 17th 06 01:55 PM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM


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

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

About Us

"It's about Microsoft Excel"