+ Reply to Thread
Results 1 to 5 of 5

selecting pivot table items

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Unhappy selecting pivot table items

    hello,
    I have a simple pivot table, based upon a datawarehouse, in which I have 2 report filters, the customer and the customer group.
    When selecting a customer or a customer group, a bunch of calculations are made in the worksheet for calculating the customer profitability.
    I would now like to have a list per customer with all the relevant profitability data. however, we have about 5 000 customers, so I would take me forever to select the first customer, copy the relevant data to a worksheet, selecting the second customer, copy the relevant data to a worksheet, selecting the third customer, etc...
    so I would like to make a macro which would do something like this

    for i
    select pivot table item i
    copy range a1, b5 , c8, d4 to worksheet X row i
    next

    I have no idea how to write the vba for selecting the pivot table items. Can anyone help me?

    thanks, steven

  2. #2
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: selecting pivot table items

    no one? I kind of need this quite quick...

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: selecting pivot table items

    Can you read it?
    http://www.databison.com/pivot-table...able-in-excel/
    http://www.globaliconnect.com/excel/...=79&Itemid=475
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  4. #4
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: selecting pivot table items

    I came across these pages to when searching the internet, but I don't see how these URL's can help me?

  5. #5
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: selecting pivot table items

    hi,
    almost there! See file attached
    one thing though which doesn't work yet, is the copy function.
    I have upload a sample file, coloured the fields yellow. I can loop through the pivot table, but the calculated result isn't stored and copied.
    again, someone can help?
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Filter pivot items using pivot items from another table
    By DKolev in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2014, 08:49 PM
  2. Replies: 1
    Last Post: 09-03-2012, 10:03 PM
  3. Selecting Pivot Items between set dates
    By joelmurphy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2010, 05:46 AM
  4. Replies: 0
    Last Post: 03-22-2009, 07:17 PM
  5. Pivot Table Selecting Items
    By AK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2005, 03:06 PM

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