return chart's source data location/range

H

HD

Hi,

I am trying to figure out if anyone knows how to have excel (vba) code to
return the source location of where the chart is getting its data from.
Ex: if i were to select a chart it will highlight the cells where it is
getting its data from to plot. what is the command (code) to have it return
the range ( : ) into a variable in vba ?
 
J

Jim Cone

Not an easy one, see what John Walkenbach has to say...
http://j-walk.com/ss/excel/tips/tip83.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"HD"
wrote in message
Hi,
I am trying to figure out if anyone knows how to have excel (vba) code to
return the source location of where the chart is getting its data from.
Ex: if i were to select a chart it will highlight the cells where it is
getting its data from to plot. what is the command (code) to have it return
the range ( : ) into a variable in vba ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top