+ Reply to Thread
Results 1 to 4 of 4

Refreshing Pivot tables

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Refreshing Pivot tables

    Hi,
    I have a pivot table analysing a dynamic table which I refresh as follows
    Sub RunLabelPivot()
    With Sheets("LabelPivot")
     .PivotTables("PivotTable2").PivotCache.Refresh
    End With
    End Sub
    This is a technique I have used, unthinkingly, many times without a problem,using Excel 2000. I now have Excel 2010
    After seeing some anomolous results I discovered by looking at the data source that the Pivot was only analysing a portion of the data table.
    How can I tell the Pivot that it has to look for the whole of a dynamic table?
    John

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Refreshing Pivot tables

    How is the data source specified?
    Good luck.

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Refreshing Pivot tables

    Try this

    Sub RefreshPivotButton()
    '
    ' RefreshPivotButton Macro
    '
    
    '
        ActiveSheet.PivotTables("Programs Title").PivotSelect "'Programs Title'[All]", _
            xlLabelOnly, True
        ActiveWorkbook.RefreshAll
    End Sub
    by changing the "program title" to the name of your pivot table. Which you can find in options for pivot table.

    Does this help?

  4. #4
    Registered User
    Join Date
    02-28-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Refreshing Pivot tables

    by changing the "program title" to the name of your pivot table. Which you can find in options for pivot table.

    Does this help?

+ 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