+ Reply to Thread
Results 1 to 2 of 2

Synchronized Pivot Tables

Hybrid View

  1. #1
    Registered User
    Join Date
    10-31-2008
    Location
    Philippines
    Posts
    47

    Synchronized Pivot Tables

    Hi,

    Is it possible to have two pivot tables synchronized when changing filter items? Say, if i selected a date on Pivot Table 1 filter I would like Pivot Table 2 to automatically change date as well.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: Synchronized Pivot Tables

    Hi

    The below code works in Excel 2003. Couldn't get it to work in Excel 2007 though.

    Dion


    Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
    
    Dim ptTable As PivotTable
    
    On Error GoTo ExitPoint
    Application.EnableEvents = False
    For Each ptTable In ActiveSheet.PivotTables
        If ptTable <> Target Then
            ptTable.PivotFields("Date").CurrentPage = Target.PivotFields("Date").CurrentPage.Value
        End If
    Next ptTable
    ExitPoint:
    Application.EnableEvents = True
    End Sub

+ 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