Consulting

Results 1 to 4 of 4

Thread: VBA Pivot Table Help

  1. #1

    VBA Pivot Table Help

    Hello All
    Desperately need your help!!

    I am trying to get a VBA code which will take data from a pivot table and put this into a new table.

    The problem is the cell each week changes due to the data inputted into the Pivot Table. How can I create a VBA code that will pick up the desired cell each time even if this is in a different place.

    Is there a way of coding this?

    Thanks for your help in advance.

    Regards

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Welcome to VBAX
    Your question is too vague. You can post a sample using Manage Updates in the Go Advanced reply section and clarify your requirements.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3

    VBA Code for extracting data form a pivot table into another table.


    Hello.

    As you can see from an attached simplified example.

    I am trying to create a VBA code that will extract certain information from a pivot table and put this into a table on another sheet.

    In the simplified example I am trying to get all the Male (M) entries in the pivot table into a table titled 'Male Table' How do I go about doing this...?

    I also have a problem as when the pivot table gets updated with more data, the number of Males entries will go up etc, and therefore data will be in different cells compared to the previous week. So I need the coding to pick up all male entries within the pivot table, regardless of their cell reference, and copy the data across into the 'male Table'

    Please advise as I have been struggling with this for some time now.
    Thanks for your help in advance

    Regards

    Carl
    Attached Files Attached Files

  4. #4
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,722
    Location
    Cross-posted here.
    Be as you wish to seem

Posting Permissions

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