Closed Thread
Results 1 to 3 of 3

Updating "pivots"

  1. #1
    Jens
    Guest

    Updating "pivots"

    It seams that

    ActiveWorkbook.RefreshAll

    dos not update pivot tables!

    Any hints

  2. #2
    Roger Govier
    Guest

    Re: Updating "pivots"

    Hi Jens

    Try
    Sub RefreshAllPivots()
    Dim pc As PivotCache
    For Each pc In ActiveWorkbook.PivotCaches
    pc.Refresh
    Next
    End Sub

    --
    Regards

    Roger Govier


    "Jens" <Jens @discussions.microsoft.com> wrote in message
    news:[email protected]...
    > It seams that
    >
    > ActiveWorkbook.RefreshAll
    >
    > dos not update pivot tables!
    >
    > Any hints




  3. #3
    Dave Peterson
    Guest

    Re: Updating "pivots"

    You sure.

    VBA's help does have this remark:

    Remarks
    Objects that have the BackgroundQuery property set to True are refreshed in the
    background.


    And if you click on BackgroundQuery, you'll see this sample code:

    Worksheets(1).PivotTables("Pivot1") _
    .PivotCache.BackgroundQuery = True


    Jens wrote:
    >
    > It seams that
    >
    > ActiveWorkbook.RefreshAll
    >
    > dos not update pivot tables!
    >
    > Any hints


    --

    Dave Peterson

Closed 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