+ Reply to Thread
Results 1 to 3 of 3

Creating chart out of pivot table using vba

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    2013
    Posts
    9

    Creating chart out of pivot table using vba

    Hello,

    I am trying to generate a 4 lines chart out of a pivot table.

    Basically my pivot table looks like this:
    Piv forum.PNG

    And the chart I get looks like this
    Chart forum .PNG

    I would like a chart with and X axis of months and a Y axis of revenues and 4 lines that each represents an employee.

    The code I'm using is as follows:

    Please Login or Register  to view this content.
    I appreciate your help.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Creating chart out of pivot table using vba

    You'll need to switch PivotTable fields.

    Month field should go in xlRowField to have x-axis plotted by Month.

    If you want to keep current PivotTable structure. I'd copy the pivot table to hidden sheet and base chart off of that Pivot table.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    03-22-2018
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    2013
    Posts
    9

    Re: Creating chart out of pivot table using vba

    Thank you

+ 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. Creating a Chart from select columns/rows in a Pivot Table
    By dreamer001 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-23-2015, 03:04 PM
  2. Creating chart visualizations from excel pivot table
    By tdm in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-27-2014, 08:53 AM
  3. Creating a mini table to summarise a pivot chart
    By no.18shirt in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-09-2013, 07:36 AM
  4. Replies: 3
    Last Post: 05-08-2013, 07:16 AM
  5. Creating a pivot table and chart ..
    By adfo in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-23-2013, 02:14 AM
  6. Creating a chart, can't get a pivot table to work.
    By arcing in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-21-2013, 08:40 AM
  7. creating a pivot table and a chart
    By wawawiwa in forum Excel General
    Replies: 2
    Last Post: 04-29-2010, 04:44 AM

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