Breaking Chart Links Loses Formatting in Chart Data Table

weaverjohn

New Member
Joined
Oct 18, 2011
Messages
9
I create workbooks that have a significant amount of private data that is used to generate charts and reports. We want to distribute a workbook with just the charts and reports without any links to the data. No big deal - use vba - create a new workbook, copy over the charts to the new workbook and run

Code:
For Each x In ActiveChart.SeriesCollection
   x.Values = x.Values
   x.XValues = x.XValues
   x.Name = x.Name
Next x

This breaks the links - just what we wanted codes the series an array (eg. {21,15,26,32})
Problem is there is a data table in most of the charts and we lose the formatting. So the original formatting is $ in k "$#,##," which is lost.

Anyone have a though as to how to format the series again or the data in the data table?

Thanks,

John Weaver
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi John

I don't think that what you want is possible. The DataTable in the chart has very little flexibility.

Whay you can do instead, is simply to copy the chart as picture. This way you get an image of the chart, including the data table formatted as you want, that you can distribute.
 
Upvote 0
Hi John

I don't think that what you want is possible. The DataTable in the chart has very little flexibility.

Whay you can do instead, is simply to copy the chart as picture. This way you get an image of the chart, including the data table formatted as you want, that you can distribute.

pgc01:

Thanks for the response. I thought I could manipulate it, but in the end think you are correct. So what I'm doing now is working on a routine that gets the series from each chart and copies it to a new book, copies the chart to a new book, and the replaces the values in the chart with the local ones. Then I can depreciate it all the way back to excel 2003 with no macros and no picot tables - just the way the boss wants it. Although I will have to go look to see if I can just copy out the charts as jpgs.


Thanks,

John
 
Upvote 0

Forum statistics

Threads
1,215,706
Messages
6,126,334
Members
449,309
Latest member
kevinsucher

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top