Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Refresh Pivot Table: Do you want to replace the destination cells

I refresh the pivot table in many different excel files, using in VBA either

ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh
or
ActiveSheet.PivotTables("PivotTable1").RefreshTabl e

What I dont get is why "some times" the program stop and request human
intervention with the question

"Do you want to replace the destination cells in Sheet1 ?

Any idea on how to force the answer to "yes" !?!... and go on...

pg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Refresh Pivot Table: Do you want to replace the destination cells


I think you need to turn the display alerts off using the following:

Application.DisplayAlerts = False

Nick


--
nickysquawkes
------------------------------------------------------------------------
nickysquawkes's Profile: http://www.excelforum.com/member.php...o&userid=30630
View this thread: http://www.excelforum.com/showthread...hreadid=502834

  #3   Report Post  
Posted to microsoft.public.excel.programming
GB GB is offline
external usenet poster
 
Posts: 230
Default Refresh Pivot Table: Do you want to replace the destination ce

Additionally, I think that DisplayAlerts = false will choose the default
setting of the window that normally would pop up. I have used this before,
but thought there was some caveat about trying to get the thing to do what I
wanted it to do, because the default answer was No or something like that....
Hmmm.. I think nicky is right though, at least that option must be
implemented.

"nickysquawkes" wrote:


I think you need to turn the display alerts off using the following:

Application.DisplayAlerts = False

Nick


--
nickysquawkes
------------------------------------------------------------------------
nickysquawkes's Profile: http://www.excelforum.com/member.php...o&userid=30630
View this thread: http://www.excelforum.com/showthread...hreadid=502834


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
Do you want to replace the destination cells? Martin ©¿©¬ @nohere.net Excel Discussion (Misc queries) 5 November 20th 09 05:43 AM
URGENT! Retain format of cells in pivot table upon refresh KDG Excel Discussion (Misc queries) 3 September 10th 07 10:02 AM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM
Replace destination cells SmilingPolitely Excel Programming 3 April 18th 04 08:06 AM
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 08:30 PM.

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"