+ Reply to Thread
Results 1 to 7 of 7

Charts need to run by macros.

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    671

    Charts need to run by macros.

    Hello Friends

    Please refer the attached 2010 version file (charts need by macros.xlsx).

    If we are inputting any date in `test chart' cell F2 (From 07/01/2005 to 11/30/2005) that month chart will be displayed in `Chart1'.

    Now I need to take the values from `Inputs' cells B2 to B6 one by one and need to be pasted in `test chart' cell F2.

    So that tottaly 5 different charts will be displayed one by one in `Chart1' and I will copy the charts one by one by using print screen and I will paste it in `output charts' as a image.

    Unfortunately I have huge data I cannot make it manually, Is there any way to do this by using macros.

    thanks in advance
    Attached Files Attached Files
    Sekar

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: Charts need to run by macros.

    Hi there,

    See if the attached workbook does what you need. It uses the following code:

    Please Login or Register  to view this content.
    You can experiment with the highlighted values to suit the layout you need.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    671

    Re: Charts need to run by macros.

    Hello Greg M

    Thanks for your Code and formula.

    After running the macros it is producing the 5 identical charts (i.e., 5 charts with same month instead of different months).

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: Charts need to run by macros.

    Hi again,

    I'm not at my computer now so I can't test the workbook, but I remember checking to see that the x-values (dates) were different on each of the five charts. Are you sure that you have Automatic Calculation enabled?

    Regards,

    Greg M

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: Charts need to run by macros.

    Hi again,

    The attached workbook shows the charts created for four of the five months involved - including the fifth chart makes the workbook too large to post here.

    Regards,

    Greg M
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    671

    Re: Charts need to run by macros.

    I am stunned,

    Hello Greg M

    thank you

    this is exactly my requirement.

    thanks again

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: Charts need to run by macros.

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated

    You're welcome - I'm glad I was able to help.

    Best regards,

    Greg M

+ 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. VBA Macros to make multiple charts
    By hecgroups in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-15-2015, 02:23 PM
  2. Moving Charts in Macros
    By AlexJMSutton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 11:10 AM
  3. Macros and Charts
    By Sharks13 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-05-2007, 01:39 PM
  4. Macros for charts/graphs...please help!!!
    By Dagwood2005 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2007, 03:26 PM
  5. [SOLVED] How do I update charts using macros
    By Seng in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-29-2005, 02:10 PM
  6. [SOLVED] Macros To Update Charts
    By Thriller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2005, 12:05 AM
  7. Charts and Macros
    By EMoe in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-15-2005, 09:08 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