C
Clif McIrvin
Excel 2003
I'm wanting to "resize" the data area of a chart using a macro.
I have added new data below existing data, and want to extend the source
data area to include the newly added data in the chart.
I have found the SetSourceData method but I don't know how to identify
the current data area. Is this possible?
Situation: I have inherited a set of worksheets (of similiar structure)
which contain historical data and are updated once a month. The existing
procedure is to add the new data at the bottom of the existing data,
then select the chart and stretch the source data outline to include the
new data.
I am writing a macro to automate this copy and paste process; but
stalled out when I discovered that I don't know how to obtain the
current data area using VBA.
(Not sure what additional information might be helpful ... so am posting
as written.)
I'm wanting to "resize" the data area of a chart using a macro.
I have added new data below existing data, and want to extend the source
data area to include the newly added data in the chart.
I have found the SetSourceData method but I don't know how to identify
the current data area. Is this possible?
Situation: I have inherited a set of worksheets (of similiar structure)
which contain historical data and are updated once a month. The existing
procedure is to add the new data at the bottom of the existing data,
then select the chart and stretch the source data outline to include the
new data.
I am writing a macro to automate this copy and paste process; but
stalled out when I discovered that I don't know how to obtain the
current data area using VBA.
(Not sure what additional information might be helpful ... so am posting
as written.)