Consulting

Results 1 to 4 of 4

Thread: Accessing a PivotTable Data via VBAX

  1. #1
    VBAX Regular
    Joined
    Dec 2007
    Posts
    15
    Location

    Accessing a PivotTable Data via VBAX

    I have a Pivot table called "Day 1" and it is used to sort Teams and the Complience in the form of 'Incomplete' and 'Complete' and calculates their Percentages

    Example of PIVIOT TABLE DATA

    Incomp. | Comp.
    Team A 12% | 88%
    Team B 10% | 90&
    Team C 50% | 50%

    I want to use VBAX to Pull these calculates and throw them lets say in Sheet1 after find the Team in Sheet 1 is will then put the data in th corresponding Cell.

    So my questions is there a way to access these Pivot Calculations and totals via VBAX and if so can you give me an example to start from?

  2. #2
    VBAX Master XLGibbs's Avatar
    Joined
    Jan 2006
    Location
    state of confusion, but vacation in denial
    Posts
    1,315
    Location
    You can use the GETPIVOTDATA() Formula.

    See the excel help file for that function.
    If you have posted the same question at multiple forums, please read this IMPORTANT INFO.

    Please use the thread tools to mark your thread Solved


    Please review the Knowledge Base
    for samples and solutions , or to submit your own!




  3. #3
    VBAX Regular
    Joined
    Dec 2007
    Posts
    15
    Location
    Quote Originally Posted by XLGibbs
    You can use the GETPIVOTDATA() Formula.

    See the excel help file for that function.
    THis sint working because the Pivot Tables are on a Seperate Sheet.

    The Pivot Tables are on a Sheet Called "Pivot Tables" and I want to access PT "Day_1" and get the Information. I can do it on the Same sheet just fine but when i go to my sheet called "Table" and try to get the data it doesnt work.

    I tried GETPIVOTDATA('Daily Pivots'!Day_1, "DESIRED FIELD" but get a ?#NAME error cause it cant find the Table. Is this possible to access a Pivot Table form another Sheet?

  4. #4
    VBAX Regular
    Joined
    Dec 2007
    Posts
    15
    Location

    SOLVED: Accessing a PivotTable Data via VBA

    Quote Originally Posted by Banixxx
    THis sint working because the Pivot Tables are on a Seperate Sheet.

    The Pivot Tables are on a Sheet Called "Pivot Tables" and I want to access PT "Day_1" and get the Information. I can do it on the Same sheet just fine but when i go to my sheet called "Table" and try to get the data it doesnt work.

    I tried GETPIVOTDATA('Daily Pivots'!Day_1, "DESIRED FIELD" but get a ?#NAME error cause it cant find the Table. Is this possible to access a Pivot Table form another Sheet?
    I figured this one out finally i found some information in a old book.

Posting Permissions

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