+ Reply to Thread
Results 1 to 3 of 3

Refresh Pivot Table: Do you want to replace the destination cells

Hybrid View

  1. #1
    pgchop
    Guest

    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").RefreshTable

    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. #2
    Registered User
    Join Date
    01-19-2006
    Posts
    10
    I think you need to turn the display alerts off using the following:

    Application.DisplayAlerts = False

    Nick

  3. #3
    GB
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1