开发者

Access copied graph in VBA

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜