VBA code to return the data series of a chart or graph

  • Thread starter Thread starter dracstorey
  • Start date Start date
D

dracstorey

HELP! Does anyone know of some VB or VBA code which will return the dat
series on which a chart or graphis based. I have a column chart and ca
check that it has a title:

.ActiveSheet.ChartObjects(1).Chart.HasTitle

as above!

However I cannot find any method which returns the range of cells o
which a chart is based.

Any ideas welcomed to this forum or email:

(e-mail address removed)
(e-mail address removed)

Many thank
 
Hi dracstorey,

Check out Jon's tutorial pages,
(http://peltiertech.com/Excel/Charts/ChgSrsFmla.html)
HELP! Does anyone know of some VB or VBA code which will return the data
series on which a chart or graphis based. I have a column chart and can
check that it has a title:

ActiveSheet.ChartObjects(1).Chart.HasTitle

as above!

However I cannot find any method which returns the range of cells on
which a chart is based.

Any ideas welcomed to this forum or email:

(e-mail address removed)
(e-mail address removed)

Many thanks

--

Cheers
Andy

http://www.andypope.info
 
Tushar

many thanks. The link was great and I have nearly integrated it into my
code. Just a couple of fixes needed!

Andrew
 
You are welcome. Glad to be of help.

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 
Back
Top