+ Reply to Thread
Results 1 to 8 of 8

Extend a Graph Source Data Area 1 Column

  1. #1
    Registered User
    Join Date
    04-14-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Extend a Graph Source Data Area 1 Column

    I have a macro that adds a column on the right side of a table of data every time I use it. I also have a graph that then plots this data. I am looking for a way to create a macro that will incorporate this added column when it is added to the table of data. for instance if I had a 5 row, 10 column matrix, my current macro would make that a 5 row, 11 column matrix and then I would have to manually go to the source data and extend it from being 5X10 to 5X11 to plot the entire set of data.

    Thanks in advance for the help.
    If you found this helpful, click the star

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Extend a Graph Source Data Area 1 Column

    Does adding a column add a category or series to the chart?

    If your matrix is a Table object then it should update automatically.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-14-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Extend a Graph Source Data Area 1 Column

    No it it just gives an update for the day. Kinda like a record of stocks at the end of every day.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Extend a Graph Source Data Area 1 Column

    that does not really answer the question. I'm trying to understand whether the new column creates new series or extends existing ones.

    Is there any reason why you can not use a Table?

  5. #5
    Registered User
    Join Date
    04-14-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Extend a Graph Source Data Area 1 Column

    It extends existing ones. And I am not entirely sure how to use tables. Thanks for the help.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Extend a Graph Source Data Area 1 Column

    example of chart linked to table. just enter new data to right of table
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-14-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Extend a Graph Source Data Area 1 Column

    Thanks that helps a lot. Though my dates (headers for each column) don't show up properly in the graph.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Extend a Graph Source Data Area 1 Column

    I can not see what you have so can't say whether there is a work around

+ 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. how to extend horizontal line on column graph
    By bos1234 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-09-2023, 10:28 PM
  2. Macro to extend graph source weekly
    By Dibbley247 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2013, 05:04 PM
  3. Source Data for Chart in Non-Contiguous Area
    By jacob@thepenpoint in forum Excel General
    Replies: 2
    Last Post: 01-31-2012, 12:37 PM
  4. Pivot Tables and VBA: Changing Contents in Data Area and updating the Data Source
    By kyrgyzstanart in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2011, 11:11 AM
  5. Graph data source spilt by column insert
    By ElfieUK4 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2010, 07:47 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