Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Refresh Pivot Table message

I update (using Access) periodically several Excel
workbooks containing bunch of Pivot Tables PT, current
count is 26, but the number changes frequently). During
the update I get the following message:

"The Refresh Data operation changed the Pivot Table
report." This stops the update cold till the OK button
is clicked.

I previously used the following code to disable at the
start and enable at the end the refresh operation:

Set xlSht = xlWbk.Worksheets("Sheet1")
XlSht.PivotTables("PT1").PivotCache.
RefreshOnFileOpen = False
Set xlSht = Nothing

But with so many PT being created and changed, it is
impossible to get them all.
So I have replaced the individual enable/disable code to
the following code:

With xlWbk.Application
.DisplayAlerts = False
.AlertBeforeOverwriting = False
.ScreenUpdating = False
.AskToUpdateLinks = False
End With

But it occasionally allows the Refresh message through.
Any ideas how the have 100% protection against the
message popping up in my update, yet refreshing the PT
when users see them?

Any ideas are greatly appreciated.

Thank you.

Lucky
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
slow document / pivot table refresh and pivot function Justin Larson[_2_] Excel Discussion (Misc queries) 1 April 2nd 09 06:41 PM
Create refresh button in worksheet to refresh Pivot Table Data Ron Excel Worksheet Functions 1 October 13th 07 01:20 AM
refresh a new worsheet on pivot table refresh [email protected] Excel Worksheet Functions 0 February 9th 07 07:39 PM
Pivot table refresh Eleanor M Excel Discussion (Misc queries) 1 January 30th 06 06:20 PM
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH Ken Roberts Excel Programming 3 September 11th 03 06:02 AM


All times are GMT +1. The time now is 10:10 PM.

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"