Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Links / August 2003

Tip: Looking for answers? Try searching our database.

Break Link to Excel Chart with Multiple Data Series

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aalwazeer@gistrans.com - 31 Jul 2003 19:41 GMT
I read the microsoft macro for breaking the chart link at

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q213443&
===
Sub BreakChartLinks()
For Each x In ActiveChart.SeriesCollection
  x.Values = x.Values
  x.XValues = x.XValues
  x.Name = x.Name
Next x
End Sub
=====
I tried that macro with their example:

A1: 1
B1: 2
C1: 3

and it worked. but when I tried the macro with charts that has
multiple data series it didn't work

I tried to modify it (to ex: 3 data series) as

===
Sub BreakChartLinks()

For I = 1 TO 3
For Each x In ActiveChart.SeriesCollection(I)
  x.Values = x.Values
  x.XValues = x.XValues
  x.Name = x.Name
Next x
Next I
End Sub
====
But it didn't work.

Is there anyway that this macro can be modified to delete the link for
any chart with multiple data series?

Thank
Bill Manville - 01 Aug 2003 00:11 GMT
wrote:
> Is there anyway that this macro can be modified to delete the link for
> any chart with multiple data series?

I think you will find that the macro you started with will deal with
multiple data series.  The problem could be that there are too many data
points in each series.  The series formula will end up with arrays of
values and of labels in it.  Something like
=SERIES("First",{"Cat 1","Cat 2","Cat 3"},{2.34567,3.45678,4.56789},1)

If you have a significant number of data points (e.g. 50) the formula
becomes too large.

A better approach, assuming you want to end up with a "dead" chart is to
take a picture of it with Shift+Edit / Copy Picture; Edit / Paste.  

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
aalwazeer@gistrans.com - 01 Aug 2003 15:44 GMT
> The problem could be that there are too many data
> points in each series.  The series formula will end up with arrays of
[quoted text clipped - 3 lines]
> If you have a significant number of data points (e.g. 50) the formula
> becomes too large.

Is there any limit for the number of series & the number of data
points in each series with which a link can be deleted?
Bill Manville - 04 Aug 2003 01:21 GMT
> Is there any limit for the number of series & the number of data
> points in each series with which a link can be deleted?

Yes and no.  Or, rather, no and yes.
There is no limit to the number of series as far as in know.

The limit on the number of data points is not fixed, because it depends
on the length of the text of the arrays of labels and values.  Formulas
are limited to 1024 characters.  I created a chart using labels X1, X2
etc. and values =RAND(); I could convert to arrays of values with up to
42 points.

Changing the value formula =INT(RAND()*100), I could convert a series
with 100 points to arrays of values.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.