Copy as Picture takes up to 5 seconds to copy

B

Barb Reinhardt

I'm using the following piece of code to copy a ChartObject as a picture.
myChtObj.CopyPicture appearance:=xlPrinter, Format:=xlPicture

I'm also using this to copy a range as a picture
myRange.CopyPicture appearance:=xlPrinter, Format:=xlPicture

The median time to copy a chart is 9 seconds and a range of cells is 6
seconds. This seems quite excessive. Has anyone seen this before and what
should I do. Execution is taking FOREVER.

FWIW, it's taking me a long time to hide columns when I have all the
application ... stuff disabled.

Thanks,
Barb Reinhardt
 
B

Barb Reinhardt

I just discovered that my default printer was "Opening". Could this be
related to my copy as picture problems?
Thanks,
Barb Reinhardt
 
D

Dave Peterson

Just a guess...

But if you use appearance:=xlprinter, then it seems reasonable to me for the
printer driver to get accessed--so excel knows how to display the picture.

Maybe it'll be quicker if you use appearance:=xlscreen (untested).

I'm not sure if you saw the other suggestions in your previous thread about
speeding up execution time.
 
B

Barb Reinhardt

You mean the ones about using

Application.ScreenUpdating = False
Application.EnableEvents = False
Application.Calculation = XLCalculationManual

etc.? I'm already using them and it's still slow!

Barb Reinhardt
 

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