Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Break Chart Links

I have a template with several embedded linked charts. After updating values
in the linked workbook, I wish to update my charts and then break all links
(so that further changes in the linked workbook are not reflected in the
charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName, Type:=xlLinkTypeExcelLinks
This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however, each
formula requires significanly more than 256 characters to accurately generate
the chart.

I have thought about converting each chart into an image after updating, but
I am not sure how to code something like this. Any suggestions or methods of
breaking chart links would be greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Break Chart Links

Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:

I have a template with several embedded linked charts. After updating values
in the linked workbook, I wish to update my charts and then break all links
(so that further changes in the linked workbook are not reflected in the
charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName, Type:=xlLinkTypeExcelLinks
This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however, each
formula requires significanly more than 256 characters to accurately generate
the chart.

I have thought about converting each chart into an image after updating, but
I am not sure how to code something like this. Any suggestions or methods of
breaking chart links would be greatly appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Break Chart Links

Jon,

Thank you for the suggestion. I believe my series arrays are being formed
properly; however, when I try to set the formula property, I get the
following error:

(ChtSeries.Formula = ...)
Run Time Error '1004': Unable to set the formula property of the series class

The string I am trying to store as a formula is 429 characters long. From
what I understand, the limit is 1024 characters. Therefore, I don't know why
I get an error.

Have you seen this behavior before?

"Jon Peltier" wrote:

Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:

I have a template with several embedded linked charts. After updating values
in the linked workbook, I wish to update my charts and then break all links
(so that further changes in the linked workbook are not reflected in the
charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName, Type:=xlLinkTypeExcelLinks
This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however, each
formula requires significanly more than 256 characters to accurately generate
the chart.

I have thought about converting each chart into an image after updating, but
I am not sure how to code something like this. Any suggestions or methods of
breaking chart links would be greatly appreciated!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Break Chart Links

Do your series have many values perhaps. A while ago I put together a
de-link chart routine which seems to work with series of at least 10,000
values, each with long value lengths, say 16 digits. Converts all data on
the chart to named arrays, with a separate routine to reconvert to cells in
same book and reconstruct if required. Not sure if this would overcome your
problem but you're welcome to try if interested.

Regards,
Peter T

pmbthornton at gmail com


"Ashleigh Gardner" wrote in
message ...
Jon,

Thank you for the suggestion. I believe my series arrays are being formed
properly; however, when I try to set the formula property, I get the
following error:

(ChtSeries.Formula = ...)
Run Time Error '1004': Unable to set the formula property of the series

class

The string I am trying to store as a formula is 429 characters long. From
what I understand, the limit is 1024 characters. Therefore, I don't know

why
I get an error.

Have you seen this behavior before?

"Jon Peltier" wrote:

Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:

I have a template with several embedded linked charts. After updating

values
in the linked workbook, I wish to update my charts and then break all

links
(so that further changes in the linked workbook are not reflected in

the
charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName,

Type:=xlLinkTypeExcelLinks
This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however,

each
formula requires significanly more than 256 characters to accurately

generate
the chart.

I have thought about converting each chart into an image after

updating, but
I am not sure how to code something like this. Any suggestions or

methods of
breaking chart links would be greatly appreciated!




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Break Chart Links

Peter,

The routine you have written sounds very promising. Basically I have
several charts, each with 2 data series. There are 26 data points per
series, but each value has 16 digits. After delinking these series and
converting to strings, I far exceed the 255 character limit of VBA's
seriesformula property.

Sounds like you overcame a similar problem, so I'd love to see how. Thanks!

"Peter T" wrote:

Do your series have many values perhaps. A while ago I put together a
de-link chart routine which seems to work with series of at least 10,000
values, each with long value lengths, say 16 digits. Converts all data on
the chart to named arrays, with a separate routine to reconvert to cells in
same book and reconstruct if required. Not sure if this would overcome your
problem but you're welcome to try if interested.

Regards,
Peter T

pmbthornton at gmail com


"Ashleigh Gardner" wrote in
message ...
Jon,

Thank you for the suggestion. I believe my series arrays are being formed
properly; however, when I try to set the formula property, I get the
following error:

(ChtSeries.Formula = ...)
Run Time Error '1004': Unable to set the formula property of the series

class

The string I am trying to store as a formula is 429 characters long. From
what I understand, the limit is 1024 characters. Therefore, I don't know

why
I get an error.

Have you seen this behavior before?

"Jon Peltier" wrote:

Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:

I have a template with several embedded linked charts. After updating

values
in the linked workbook, I wish to update my charts and then break all

links
(so that further changes in the linked workbook are not reflected in

the
charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName,

Type:=xlLinkTypeExcelLinks
This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however,

each
formula requires significanly more than 256 characters to accurately

generate
the chart.

I have thought about converting each chart into an image after

updating, but
I am not sure how to code something like this. Any suggestions or

methods of
breaking chart links would be greatly appreciated!






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Break Chart Links

Ashleigh,

Sounds like you overcame a similar problem, so I'd love to see how.

Thanks!

Horizontal array 256, vertical array 64k. But there's a bit more to it.

I've just sent you what I have.

Regards,
Peter


"Ashleigh Gardner" wrote in
message ...
Peter,

The routine you have written sounds very promising. Basically I have
several charts, each with 2 data series. There are 26 data points per
series, but each value has 16 digits. After delinking these series and
converting to strings, I far exceed the 255 character limit of VBA's
seriesformula property.

Sounds like you overcame a similar problem, so I'd love to see how.

Thanks!

"Peter T" wrote:

Do your series have many values perhaps. A while ago I put together a
de-link chart routine which seems to work with series of at least 10,000
values, each with long value lengths, say 16 digits. Converts all data

on
the chart to named arrays, with a separate routine to reconvert to cells

in
same book and reconstruct if required. Not sure if this would overcome

your
problem but you're welcome to try if interested.

Regards,
Peter T



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Break Chart Links

Peter -

Does it make use of the xlusrgal.xls file? I was using that technique
for a while, and now I can't save any new user defined chart types.

If it doesn't use xlusrgal.xls, I'd be appreciative if you sent me a
copy of your routine. delete the caps from the From email.

Thanks,

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



Peter T wrote:

Do your series have many values perhaps. A while ago I put together a
de-link chart routine which seems to work with series of at least 10,000
values, each with long value lengths, say 16 digits. Converts all data on
the chart to named arrays, with a separate routine to reconvert to cells in
same book and reconstruct if required. Not sure if this would overcome your
problem but you're welcome to try if interested.

Regards,
Peter T

pmbthornton at gmail com


"Ashleigh Gardner" wrote in
message ...

Jon,

Thank you for the suggestion. I believe my series arrays are being formed
properly; however, when I try to set the formula property, I get the
following error:

(ChtSeries.Formula = ...)
Run Time Error '1004': Unable to set the formula property of the series


class

The string I am trying to store as a formula is 429 characters long. From
what I understand, the limit is 1024 characters. Therefore, I don't know


why

I get an error.

Have you seen this behavior before?

"Jon Peltier" wrote:


Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:


I have a template with several embedded linked charts. After updating


values

in the linked workbook, I wish to update my charts and then break all


links

(so that further changes in the linked workbook are not reflected in


the

charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName,


Type:=xlLinkTypeExcelLinks

This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however,


each

formula requires significanly more than 256 characters to accurately


generate

the chart.

I have thought about converting each chart into an image after


updating, but

I am not sure how to code something like this. Any suggestions or


methods of

breaking chart links would be greatly appreciated!



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Break Chart Links

Hi Jon,

Does it make use of the xlusrgal.xls file? I was using that technique
for a while, and now I can't save any new user defined chart types.


No nothing like that, guess you mean store a custom chart. I hadn't thought
of that but not sure I'd want to put loads of UD charts with many values
there, in any case wouldn't be transportable.

As I mentioned to the OP, named vertical arrays, eg
vertical {1;2;3}
vs
horizontal {1,2,3}

If it doesn't use xlusrgal.xls, I'd be appreciative if you sent me a
copy of your routine. delete the caps from the From email.


I've just sent you my routine, also sample a chart with some "long" series
to test with.

Nick - I have also cc'd same to you.

Regards,
Peter T


Peter T wrote:

Do your series have many values perhaps. A while ago I put together a
de-link chart routine which seems to work with series of at least 10,000
values, each with long value lengths, say 16 digits. Converts all data

on
the chart to named arrays, with a separate routine to reconvert to cells

in
same book and reconstruct if required. Not sure if this would overcome

your
problem but you're welcome to try if interested.

Regards,
Peter T

pmbthornton at gmail com


"Ashleigh Gardner" wrote in
message ...

Jon,

Thank you for the suggestion. I believe my series arrays are being

formed
properly; however, when I try to set the formula property, I get the
following error:

(ChtSeries.Formula = ...)
Run Time Error '1004': Unable to set the formula property of the series


class

The string I am trying to store as a formula is 429 characters long.

From
what I understand, the limit is 1024 characters. Therefore, I don't

know

why

I get an error.

Have you seen this behavior before?

"Jon Peltier" wrote:


Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:


I have a template with several embedded linked charts. After updating


values

in the linked workbook, I wish to update my charts and then break all


links

(so that further changes in the linked workbook are not reflected in


the

charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName,


Type:=xlLinkTypeExcelLinks

This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however,


each

formula requires significanly more than 256 characters to accurately


generate

the chart.

I have thought about converting each chart into an image after


updating, but

I am not sure how to code something like this. Any suggestions or


methods of

breaking chart links would be greatly appreciated!





  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Break Chart Links

Yeah, the series formula is limited to 1024, but that's misleading, and
any single component is limited to around 250 (it's not the hard 256
you'd expect). This means the Values and XValues each have to be less
than 250 characters.

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


Ashleigh Gardner wrote:

Jon,

Thank you for the suggestion. I believe my series arrays are being formed
properly; however, when I try to set the formula property, I get the
following error:

(ChtSeries.Formula = ...)
Run Time Error '1004': Unable to set the formula property of the series class

The string I am trying to store as a formula is 429 characters long. From
what I understand, the limit is 1024 characters. Therefore, I don't know why
I get an error.

Have you seen this behavior before?

"Jon Peltier" wrote:


Delinking Chart Data:
http://peltiertech.com/Excel/ChartsH...ChartData.html

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


Ashleigh Gardner wrote:


I have a template with several embedded linked charts. After updating values
in the linked workbook, I wish to update my charts and then break all links
(so that further changes in the linked workbook are not reflected in the
charts).

I have tried, for example:
ActiveWorkbook.BreakLinks Name:=linkFileName, Type:=xlLinkTypeExcelLinks
This does not seem to have any impact on the chart links.

I have also tried converting each chart series into an array; however, each
formula requires significanly more than 256 characters to accurately generate
the chart.

I have thought about converting each chart into an image after updating, but
I am not sure how to code something like this. Any suggestions or methods of
breaking chart links would be greatly appreciated!


  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Break Chart Links


Peter,
I would also be interested in taking a look at your routine, as I
am having the same problem. My goal is to avoid storing thousands of
points in cells by using VBA code to calculate points and putting the
data directly into a chart. The 256 character is greatly limiting me.
If you don't mind sending the routine to me, my email is below.

-Nick

nickbowman at yahoo.com


--
nbowman
------------------------------------------------------------------------
nbowman's Profile: http://www.excelforum.com/member.php...o&userid=25152
View this thread: http://www.excelforum.com/showthread...hreadid=385283



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
Break Links But Keep Formulas Tim879 Excel Discussion (Misc queries) 1 June 17th 08 04:05 AM
Break Links Sean Excel Discussion (Misc queries) 1 October 25th 06 03:34 PM
Break Links not working !!!! HELP !! WhytheQ Excel Discussion (Misc queries) 3 May 25th 06 02:28 PM
break excel links striker72s[_2_] Excel Programming 7 July 2nd 05 01:44 PM
break links peadar Excel Programming 2 March 22nd 05 12:43 AM


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

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"