When I record a macro in excel and then copy two Object charts it looks like this:
But how can I do this from VB. I have two OLE with MsGraph in each one of them.VB Code:
ActiveSheet.Shapes.Range(Array("Object 2", "Object 1")).Copy
Copy a chart from one OLE is no problem. But how can I copy both charts at the same time to clipboard?
Copy one chart I do like this
VB Code:
Dim objGraph As Object Clipboard.Clear Set objGraph = Me.OLE1.object objGraph.ChartArea.Copy Set objGraph = Nothing




Reply With Quote