+ Reply to Thread
Results 1 to 7 of 7

Help with converting 2007 pivot to work on 2003

Hybrid View

  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help with converting 2007 pivot to work on 2003

    Point being you need to create the Pivots in Compatibility Mode ... if they were created in XL2007 you can not convert them retrospectively.

    Quote Originally Posted by mztexas
    I would like for the pivot tables to update with the added data when refreshed but not sure how to do that either in 2003.
    Use a Dynamic Named Range as the source for the Pivot (see link in sig. for more info) and/or use an appropriate VBA event to refresh the Pivot cache as when that data is altered.

  2. #2
    Registered User
    Join Date
    07-13-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003/2007
    Posts
    3

    Re: Help with converting 2007 pivot to work on 2003

    I am not sure how to write the code for a dynamic named range. Can you help me out? The file is attached to the first post.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help with converting 2007 pivot to work on 2003

    Creating the Dynamic Named Range itself is simple enough, eg:

    Name: _PTData
    RefersTo: ='Applicant Data'!$A$2:INDEX('Applicant Data'!$I:$I,MATCH(REPT("Z",255),'Applicant Data'!$A:$A))
    When creating the PT you would enter _PTData as source
    (if you continue to use existing 2007 versions you can go to Pivot Table Options bar on Ribbon [when PT active] and click Change Data Source)

    In theory you can use a Change event on the Application Data object to refresh the PT Cache(s) as and when that data is altered:

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim PT As PivotTable, ws As Worksheet
        On Error Resume Next
        With Application
            .EnableEvents = False
            .ScreenUpdating = False
            For Each ws In ThisWorkbook.Worksheets
                For Each PT In ws.PivotTables
                    PT.PivotCache.Refresh
                Next PT
            Next ws
            .EnableEvents = True
            .ScreenUpdating = True
        End With
    End Sub
    but you may need to be careful regards positioning of the Pivots

    In reality - I would suggest creating a back up and running some tests to see if you can get what you want.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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