copy chart delay (musa.biralo query)

M

Matthew Dodds

Back in December musa.biralo posted asking about why copy chart was so
slow.

I've just been working with this and found that while using
activesheet.ChartObjects(1).copy followed by a .paste within a with
worksheets clause is indeed very slow (~3 seconds), the exact same
outcome can be acheived using chtObj.chart.ChartArea.Copy followed by
the same .paste within a with worksheets clause ... but occurs without
perceptible delay. It appears that Excel recognises the need to
provide the chartObject object to accommodate the pasted ChartArea,
thereby removing the need to copy/paste this object along with the
ChartArea itself. It similarly appears that it's the copy/paste of the
chartObject object that takes the time.

Matthew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top