Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Read SourceData from Chart

Hi,

Is there a way to read the SourceData from a Chart?, Ive read on the web
that cant be done.

There is a file that has this chart, then in a new WBook, it is copied the
chart and the sheet that contains the data for the chart. When I do this, The
chart's SourceData points to the old WBook, so im trying to read the
SourceData so I can change it to be the same range but in the new WBook.

Can this be done programatically?, or is there a way to get rid of this
"link" with the old file?

Thanks !
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Read SourceData from Chart

http://j-walk.com/ss/excel/tips/tip83.htm
A Class Module to Manipulate a Chart SERIES

from John Walkenbach's site.

--
Regards,
Tom Ogilvy

"Fernando" wrote in message
...
Hi,

Is there a way to read the SourceData from a Chart?, Ive read on the web
that cant be done.

There is a file that has this chart, then in a new WBook, it is copied the
chart and the sheet that contains the data for the chart. When I do this,

The
chart's SourceData points to the old WBook, so im trying to read the
SourceData so I can change it to be the same range but in the new WBook.

Can this be done programatically?, or is there a way to get rid of this
"link" with the old file?

Thanks !



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Read SourceData from Chart

Instead of copying the chart and sourcedata separately, copy the sheet with
the chartobject and data to the new workbook.

If chart and data are on different sheets:
- select both sheets
- right click the (grouped) sheet tabs
- "Move or Copy"
- check the copy option
- select the book to copy to.

Regards,
Peter T

"Fernando" wrote in message
...
Hi,

Is there a way to read the SourceData from a Chart?, Ive read on the web
that cant be done.

There is a file that has this chart, then in a new WBook, it is copied the
chart and the sheet that contains the data for the chart. When I do this,

The
chart's SourceData points to the old WBook, so im trying to read the
SourceData so I can change it to be the same range but in the new WBook.

Can this be done programatically?, or is there a way to get rid of this
"link" with the old file?

Thanks !



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Read SourceData from Chart

I haven't tried this macro to change a workbook name, but it's worth a
try. In fact, change the old workbook name to nothing.

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


Fernando wrote:

Hi,

Is there a way to read the SourceData from a Chart?, Ive read on the web
that cant be done.

There is a file that has this chart, then in a new WBook, it is copied the
chart and the sheet that contains the data for the chart. When I do this, The
chart's SourceData points to the old WBook, so im trying to read the
SourceData so I can change it to be the same range but in the new WBook.

Can this be done programatically?, or is there a way to get rid of this
"link" with the old file?

Thanks !

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic sourcedata when copying chart within sheet [email protected] Charts and Charting in Excel 3 June 11th 08 03:37 PM
Excel/chart/sourcedata - should let me set the left or right axis belohls Charts and Charting in Excel 1 June 19th 06 10:43 PM
PivotTableWizard SourceData question Microsoft Forum Excel Programming 3 February 26th 05 05:50 PM
SourceData in pivot table JIM.H.[_2_] Excel Programming 0 June 9th 04 12:59 AM
Setting up a SourceData:= in VB Emmanuel[_2_] Excel Programming 1 January 22nd 04 08:15 PM


All times are GMT +1. The time now is 07:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"