I have a standard bar chart in Excel 2013 where one element of the series is intentionally set a different color (the series are the months of the current year, while the "stand apart" one is an average of the previous year - for comparison).
Any time I copy it, the pasted version has the differently-colored series element in a different location. it's the weirdest bug I have ever seen. Print Preview looks like it should (colors in the right place).
I should also point out that this sheet is normally protected, and I have a button which activates a macro to copy to the clipboard, using this code:
[/CODE]
The actual data behind the chart is huge, so the copy-as-picture is intentional, since they never want to embed the workbook in PowerPoint. I have also tried the CopyPicture instruction using the xlPrinter and xlScreen modifiers, but again, it looks wrong.
As an experiment, I also tried manually copying and pasting, using Keep Source Formatting and Use Destination Theme paste methods, and those actually mess up the formatting in a different way: all series elements are uniform in color, meaning the one different one is lost. Only paste As Picture keeps the differently-colored element...but in the wrong location (same as the code above).
All of this tells me there is some fundamental bug in the way the clipboard copies chart formatting. I've been Googling this for hours looking for a workaround, and since I've come up blank I expect no answer to this post either, but figure it can never hurt to ask.
Has anyone figured a way around this??
Any time I copy it, the pasted version has the differently-colored series element in a different location. it's the weirdest bug I have ever seen. Print Preview looks like it should (colors in the right place).
I should also point out that this sheet is normally protected, and I have a button which activates a macro to copy to the clipboard, using this code:
Code:
[CODE]Sub CopyMonitorChart()
Worksheets("Charts").ChartObjects("Chart 1").CopyPicture
End Sub
The actual data behind the chart is huge, so the copy-as-picture is intentional, since they never want to embed the workbook in PowerPoint. I have also tried the CopyPicture instruction using the xlPrinter and xlScreen modifiers, but again, it looks wrong.
As an experiment, I also tried manually copying and pasting, using Keep Source Formatting and Use Destination Theme paste methods, and those actually mess up the formatting in a different way: all series elements are uniform in color, meaning the one different one is lost. Only paste As Picture keeps the differently-colored element...but in the wrong location (same as the code above).
All of this tells me there is some fundamental bug in the way the clipboard copies chart formatting. I've been Googling this for hours looking for a workaround, and since I've come up blank I expect no answer to this post either, but figure it can never hurt to ask.
Has anyone figured a way around this??