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
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
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