PC Review


Reply
Thread Tools Rate Thread

Can you ask a chart which worksheet it's data is located?

 
 
Chrisso
Guest
Posts: n/a
 
      13th Aug 2007
Hi All

Is it possible through VBA to ask a chart for the name of the
worksheet where it is sourcing its data?

I have one worksheet with all my charts. Each chart refers to data on
a seperate sheet - one per chart.

I would like to loop through each ActiveSheet.ChartObjects and find
the worksheet where the data lives - I then intend to update it based
on user criteria.

I cannot see how to achieve this through the object model. Is this
possible? I suppose it may not be as a chart may have data from
multiple worksheets.

Thanks for any ideas in advance,
Chrisso

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      13th Aug 2007
See the thread in the charting group.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Chrisso" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All
>
> Is it possible through VBA to ask a chart for the name of the
> worksheet where it is sourcing its data?
>
> I have one worksheet with all my charts. Each chart refers to data on
> a seperate sheet - one per chart.
>
> I would like to loop through each ActiveSheet.ChartObjects and find
> the worksheet where the data lives - I then intend to update it based
> on user criteria.
>
> I cannot see how to achieve this through the object model. Is this
> possible? I suppose it may not be as a chart may have data from
> multiple worksheets.
>
> Thanks for any ideas in advance,
> Chrisso
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring chart data from one worksheet to another =?Utf-8?B?RGFkZHlP?= Microsoft Excel Charting 1 27th Apr 2007 01:13 PM
Rows of data, using status columns to sort data to pie chart on another worksheet tab Greggy Microsoft Excel Discussion 1 28th Mar 2007 04:05 PM
Use detailed data in one worksheet to create summary data as chart source rdemyan Microsoft Excel Charting 0 23rd Jan 2007 02:18 PM
how to print chart located on another chart on one page? =?Utf-8?B?SGVsbXV0?= Microsoft Excel Charting 2 31st Jan 2006 07:35 AM
How do i recover data in a worksheet that is still in a chart? =?Utf-8?B?TWFydGluNjM=?= Microsoft Excel Misc 3 23rd Nov 2005 02:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:17 AM.