开发者

Access copied graph in VBA

开发者 https://www.devze.com 2023-04-13 00:28 出处:网络
I have copy and pasted a graph onto another worksheet: With ActiveChart .ChartArea.Copy End With Worksheets(\"Legends\").Paste

I have copy and pasted a graph onto another worksheet:

With ActiveChart
        .ChartArea.Copy
End With

Worksheets("Legends").Paste

Dim LegendGraph As Object
LegendGraph = Worksheets("Legends").ChartObjects(Workshe开发者_JAVA百科ets("Legends").ChartObjects.count)

The last line won't work. How do I access the copied graph?


I was able to acces the graph like this:

Worksheets("Legends").ChartObjects(Worksheets("Legends").ChartObjects.count).Chart
0

精彩评论

暂无评论...
验证码 换一张
取 消