View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default creating range for chart

I have an Excel application that returns relevant data into a table
that has a set number of columns but the rows may vary. I have a
corresponding graph based on the results. The problem is when the
number of rows returned is more or less than the original, so my graph
is incomplete.

Presently the 'source' data for the graph reads

y1 axis =Report!$C$7:$C$12
y2 axis =Report!$B$7:$B$12
x axis labels; =Report!$A$7:$A$12

This graphs fine if I have exactly 6 rows of data, but if I have more
the chart does not recognize these.

How would I program this so the chart knows to expand or contract based
on the number of rows with live data?

Thank you,

Tony B