+ Reply to Thread
Results 1 to 4 of 4

How to create multiple charts from a range of data?

  1. #1
    Registered User
    Join Date
    06-25-2021
    Location
    BD
    MS-Off Ver
    2016
    Posts
    4

    How to create multiple charts from a range of data?

    I've scoured the internet past two days, but could not find any solution. More accurately, I don't know which keywords should I use to search it out.

    The problem is as follows, I need to create quite a number of charts from a very large data set. An example of what I was doing is given below. One method I am using is CTRL+D to duplicate the chart and then adjusting the series by dragging the series column.

    Obviously, this is time-consuming and not suitable for large data sets (say 100 or more series). I also need to arrange these charts in a printable form.

    Any help to make this thing manageable would be appreciated.

    vCQK8.png
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: How to create multiple charts from a range of data?

    May be some simple macro would be a good starting point?
    I've registered macro while creating one graph and then changed it to be run in a loop.
    It generates a row of graphs, but rearranging them into x columns by y rows will be probably easy to be done manual.

    In the attached file you will fing both recorded macro, and the ready to play one. Of course you probably would need to adjust heights, widths and positions, but it's already there, so just play with numbers :-) Or register your process of creation and for instance tilting dates on axis description and copy them into the working macro (remembering to always work with obj. ... shape object (or with obj.Chart.Axes(xlCategory). ... etc) not "Activechart etc. as goes the result of the macro recorder)

    the code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Kaper; 06-25-2021 at 10:47 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    06-15-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    34

    Re: How to create multiple charts from a range of data?

    Is there a reason you can't just use a pivot chart? Do you need to visually see all the charts at the same time? Or do you just need to be able to print which one you want on demand? If the later just do a pivot chart.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: How to create multiple charts from a range of data?

    Quote Originally Posted by AAKBD View Post
    I also need to arrange these charts in a printable form.
    I understood this as the requirement to see/print many graphs at the same time.

    As I mentioned, rearranging could be done manually, but the arrangement could be also done by macro.
    For instance to get 4 columns (for other number of columns use it instead of red fours in thje code below) such modification of lines 7 and 8 of above code could be used:
    Please Login or Register  to view this content.

+ 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. Replies: 0
    Last Post: 10-17-2020, 10:32 PM
  2. Help needed to loop a macro and create many charts through a data range
    By JimFarr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-22-2018, 07:23 PM
  3. How do I create interactive charts based on different range of data?
    By Byambadorj in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-08-2018, 08:19 PM
  4. How do I create interactive charts based on different range of data?
    By Byambadorj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2018, 08:12 PM
  5. Replies: 2
    Last Post: 01-08-2018, 08:10 PM
  6. How can I use VBA to create multiple pie charts from a series of data
    By johnskinner 3 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-26-2012, 01:52 PM
  7. Replies: 0
    Last Post: 05-27-2007, 10:22 PM

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