Paste graph as a picture - too slow. Any suggestions??

Andrewdm

New Member
Joined
May 27, 2002
Messages
34
The code below is used to copy all graphs on all sheets and paste them as a picture. The important thing is that the graphs are pasted back to their original position.

The code works great, except that it has slowed the process by 300% (total time for running has increased from 8 hours to 24!!). It takes about 6 seconds to copy and paste each graph.

Any suggestions on how to speed up the process. Would it be quicker to select ALL graphs on a sheet at once and paste them all at once??
------------------------------
Dim ChObj As ChartObject
Dim Top As Double
Dim Left As Double

For Each ChObj In ActiveSheet.ChartObjects
Top = ChObj.Top
Left = ChObj.Left
ChObj.Cut
ActiveSheet.Pictures.Paste.Select
Selection.Top = Top
Selection.Left = Left

Next ChObj
Next sh
 
So my question becomes irrelevant.

Sorry, I don't know how to speed up the process given the number of charts you have. Perhaps it's time to upgrade your users. Or reduce the number of charts per workbook.
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,943
Messages
6,127,814
Members
449,409
Latest member
katiecolorado

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top