+ Reply to Thread
Results 1 to 3 of 3

VBA code to plot the line graph for each row data in a worksheet

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    7

    VBA code to plot the line graph for each row data in a worksheet

    Hi,

    Consider the table given below:

    Scores May June July August
    ABC 45 55 50 60
    XYZ 55 70 80 75
    BCD 50 60 70 80
    CDG 40 60 50 90

    I wanted to plot the line graph for each row with the first row as header for each row. Assume where column data will be appended for every month.

    Can someone please help me with vba code to solve the above scenario.

    Thanks in advance.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA code to plot the line graph for each row data in a worksheet

    It will help if you can explain why you need a VBA solution rather than just creating the graph. What can change about the number of rows and number of columns? An option that may be preferable to VBA is to use dynamic ranges for the chart series.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    7

    Re: VBA code to plot the line graph for each row data in a worksheet

    Hi Jeff,

    I have a macro code which will fetch data from the source and append it into the new columns for every month on running the macro every time. I wanted to plot the graph for each user with their corresponding scores for every month while running the macro.

    Thanks,
    Karthik

+ 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. Macros to plot data in a line graph
    By taimysho0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2014, 05:27 PM
  2. [SOLVED] How do you plot real time data into a line graph?
    By jonathan@ibbotsons in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-30-2013, 09:49 AM
  3. Line Graph - Do plot zero, Don't plot #NA
    By Janc in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-01-2012, 05:45 PM
  4. Data Plots Generate Plot Graph with Solid / Dash Line
    By batmanfan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2010, 12:13 AM
  5. Replies: 1
    Last Post: 12-16-2008, 08:44 AM
  6. [SOLVED] how do I plot a constant value in a line graph?
    By Debby Blaine in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-11-2006, 04:15 AM
  7. [SOLVED] How do I plot both line and column data on same graph?
    By Jackie in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-03-2005, 01:06 PM

Tags for this Thread

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