+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question create a line chart

    I’m relatively new to Excel VBA macros and have what I think would be of good use for one but I can't seem to get my hands around it. Previously, I’ve created charts by recording a macro when using a fixed amount of data (i.e. number of rows don’t change). I now have a need to create a macro that graphs data from two columns that have a variable number of rows which is where my problem lies.

    What I’m trying to do is the following.

    1)Generate a line graph using data (time) in column C and (storage) in column E.
    2)Chart title to contain data from cell A1.
    3)The input file name may be different each time I run the macro but the columns will be the same.
    4)The number of rows will vary.
    5)I would like the chart to be a separate sheet in the workbook with the data.

    Any ideas on how this could be accomplished? I’ve attached a sample example of what I’m looking for and how the data looks except the example shows the chart embedded not in a separate sheet. I would appreciate any help you can provide.

    Thanks,
    John
    Attached Images Attached Images
    Last edited by watchdog2001; 03-16-2010 at 03:41 PM.
    John Acosta

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0