PC Review


Reply
Thread Tools Rate Thread

Converting Graph data links to values using code

 
 
WSF
Guest
Posts: n/a
 
      17th May 2004
Excel 97
I create charts using a workbook with templates and change the reports using
dynamic data ranges. One worksheet can hold several graphs. I then copy the
charts to another workbook for distribution. I extinguish the data series
links by manually converting them to values (select graph line, F2, F9,
Enter) etc., graph by graph. A painstaking job at times.

Can this be automated with code?

TIA WSF


 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      17th May 2004
Hi
have a look at
http://peltiertech.com/Excel/Charts/...html#DelinkCht

--
Regards
Frank Kabel
Frankfurt, Germany


WSF wrote:
> Excel 97
> I create charts using a workbook with templates and change the
> reports using dynamic data ranges. One worksheet can hold several
> graphs. I then copy the charts to another workbook for distribution.
> I extinguish the data series links by manually converting them to
> values (select graph line, F2, F9, Enter) etc., graph by graph. A
> painstaking job at times.
>
> Can this be automated with code?
>
> TIA WSF

 
Reply With Quote
 
Tushar Mehta
Guest
Posts: n/a
 
      17th May 2004
One way to convert all embedded charts on a sheet:

Sub Macro2()
Dim aSeries As Series, aChartObj As ChartObject
For Each aChartObj In ActiveSheet.ChartObjects
For Each aSeries In aChartObj.Chart.SeriesCollection
With aSeries
.Values = .Values
.XValues = .XValues
End With
Next aSeries
Next aChartOba
End Sub

Do note that the code above converts only the series. If there are
other objects (datalabels, titles, textboxes, etc.) with links to
cells, they are not converted.

An alternative you might want to consider is to copy an image of the
chart with SHIFT + Edit | Copy Picture...

--
Regards,

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

In article <sY%pc.6366$(E-Mail Removed)>,
(E-Mail Removed) says...
> Excel 97
> I create charts using a workbook with templates and change the reports using
> dynamic data ranges. One worksheet can hold several graphs. I then copy the
> charts to another workbook for distribution. I extinguish the data series
> links by manually converting them to values (select graph line, F2, F9,
> Enter) etc., graph by graph. A painstaking job at times.
>
> Can this be automated with code?
>
> TIA WSF
>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      18th May 2004
An alternative page on my site shows how to copy pictures of the charts
into PowerPoint. Might make for a nicer presentation vehicle than Excel.

http://peltiertech.com/Excel/XL_PPT.html

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

Frank Kabel wrote:

> Hi
> have a look at
> http://peltiertech.com/Excel/Charts/...html#DelinkCht
>


 
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
graph, data lables value, dont show zero values Madeleine Microsoft Excel Charting 1 14th Feb 2008 05:55 PM
Data Table - Graph Links Breaking!!! Geise, Brad Microsoft Excel Charting 1 31st Mar 2005 12:34 AM
Graph Data Values mark curtis Microsoft Excel Misc 3 28th May 2004 02:10 PM
converting excel data to a powerpoint graph Lisa Microsoft Powerpoint 1 9th Dec 2003 01:26 PM
Code: Paste Graph with no Edit-->links Giri Microsoft Excel Misc 0 29th Jul 2003 11:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 AM.