+ Reply to Thread
Results 1 to 4 of 4

Update pivottables

  1. #1
    Henrik
    Guest

    Update pivottables

    Is it possible to update (here understood as changing an element of a field)
    in more than one table with one operation only, or do all tables have to be
    updated manually?

    For instance, if I have several pivottables with a 'Country' field in the
    page section and I want to update all from, say. Germany to France, can that
    be done in one operation?

  2. #2
    Debra Dalgleish
    Guest

    Re: Update pivottables

    You can do this with programming. There's a sample file here:

    http://www.contextures.com/excelfiles.html#Pivot

    Under PivotTables, look for 'Change Page Field'

    Henrik wrote:
    > Is it possible to update (here understood as changing an element of a field)
    > in more than one table with one operation only, or do all tables have to be
    > updated manually?
    >
    > For instance, if I have several pivottables with a 'Country' field in the
    > page section and I want to update all from, say. Germany to France, can that
    > be done in one operation?



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  3. #3
    Henrik
    Guest

    Re: Update pivottables

    I can see how it works in the example file -- now how do I get it to work on
    my file as well? Didn't show up as an add-in...

    "Debra Dalgleish" wrote:

    > You can do this with programming. There's a sample file here:
    >
    > http://www.contextures.com/excelfiles.html#Pivot
    >
    > Under PivotTables, look for 'Change Page Field'
    >
    > Henrik wrote:
    > > Is it possible to update (here understood as changing an element of a field)
    > > in more than one table with one operation only, or do all tables have to be
    > > updated manually?
    > >
    > > For instance, if I have several pivottables with a 'Country' field in the
    > > page section and I want to update all from, say. Germany to France, can that
    > > be done in one operation?

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  4. #4
    Debra Dalgleish
    Guest

    Re: Update pivottables

    To adapt the code to your workbook:

    Right-click on the Sales Pivot sheet tab, and choose View Code
    Copy all the code
    Switch to your workbook, and right-click on the main pivot table sheet
    tab, and choose View Code
    Paste the copied code.
    In the code, change the references to match your workbook. For example,
    change: strField = "Item"
    to the name of your page field, and change the worksheet name:
    Set wsOther = Sheets("Other Pivots")
    to match the sheet name where your secondary pivot tables are located.

    Henrik wrote:
    > I can see how it works in the example file -- now how do I get it to work on
    > my file as well? Didn't show up as an add-in...
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>You can do this with programming. There's a sample file here:
    >>
    >> http://www.contextures.com/excelfiles.html#Pivot
    >>
    >>Under PivotTables, look for 'Change Page Field'
    >>
    >>Henrik wrote:
    >>
    >>>Is it possible to update (here understood as changing an element of a field)
    >>>in more than one table with one operation only, or do all tables have to be
    >>>updated manually?
    >>>
    >>>For instance, if I have several pivottables with a 'Country' field in the
    >>>page section and I want to update all from, say. Germany to France, can that
    >>>be done in one operation?

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ 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