+ Reply to Thread
Results 1 to 3 of 3

Automatically detecting data length for graph

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    13

    Automatically detecting data length for graph

    Greetings,

    If I am using a macro to auto-generate a graph, how can I make it so that the macro works for any range of data, whether there are 10 or 500 entries.

    This is an example data series that I have now.

    Please Login or Register  to view this content.
    The code above, for instance, will only graph for data between 2 - 1297 cells. How can I automate this?
    Is it possible to modify this to autorange the data?

    Thanks alot,
    Willis

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Automatically detecting data length for graph

    You colud define the range that you want as a name (say Area) and reference it in the code.

    Please Login or Register  to view this content.
    If this range is dynamic, you'd probably want to refer to dynamic charting in Excel. This might prove useful

    http://www.excelforum.com/excel-char...html?p=2850714
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Automatically detecting data length for graph

    If your data is continuous try

    Please Login or Register  to view this content.
    Pauley

+ Reply to Thread

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.6.0 RC 1