I tried your code with a minor change (chart number). But nothing gets selected. The changes I made are below.
![]()
With ActiveSheet .ChartObjects("Chart 3").Select .ChartObjects("Chart 4").Select False End With Selection.Copy
I tried your code with a minor change (chart number). But nothing gets selected. The changes I made are below.
![]()
With ActiveSheet .ChartObjects("Chart 3").Select .ChartObjects("Chart 4").Select False End With Selection.Copy
what version of excel do you have?
2007, I should have mentioned that initially.
Can you work with this?
It groups the chartobjects and the copies before ungrouping.
And when you paste you will need to ungroup as well Edit: Charts pasted in ungrouped
![]()
Sub x() With ActiveSheet With .Shapes.Range(Array("Chart 4", "Chart 3")).Group .Copy .Ungroup End With End With End Sub
Perfect, that works great! Thanks Andy.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks