Consulting

Results 1 to 3 of 3

Thread: Solved: update pivot table

  1. #1
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    Solved: update pivot table

    hi all..

    i have a pivot table and i need it to update it when i go to the sheet.
    i've come up with the following code see below.
    but it only updates the table when i click on a cell.

    Private Sub worksheet_selectionchange(ByVal target As Excel.Range)
    ActiveSheet.PivotTables("PivotTable1").RefreshTable
    End Sub


    please help

    thanks

  2. #2
    MS Excel MVP VBAX Tutor
    Joined
    Mar 2005
    Posts
    246
    Location
    [VBA]Private Sub Worksheet_Activate()
    ActiveSheet.PivotTables("PivotTable1").RefreshTable
    End Sub[/VBA]
    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com
    _______

  3. #3
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    thanks for the quick reply.

    thats it

    it works

    thanks again

Posting Permissions

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