PC Review


Reply
Thread Tools Rate Thread

Copy as Picture takes up to 5 seconds to copy

 
 
Barb Reinhardt
Guest
Posts: n/a
 
      16th Sep 2008
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


 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      17th Sep 2008
I just discovered that my default printer was "Opening". Could this be
related to my copy as picture problems?
Thanks,
Barb Reinhardt

"Barb Reinhardt" wrote:

> 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
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      17th Sep 2008
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.

Barb Reinhardt wrote:
>
> I just discovered that my default printer was "Opening". Could this be
> related to my copy as picture problems?
> Thanks,
> Barb Reinhardt
>
> "Barb Reinhardt" wrote:
>
> > 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
> >
> >


--

Dave Peterson
 
Reply With Quote
 
Barb Reinhardt
Guest
Posts: n/a
 
      17th Sep 2008
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




"Dave Peterson" wrote:

> 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.
>
> Barb Reinhardt wrote:
> >
> > I just discovered that my default printer was "Opening". Could this be
> > related to my copy as picture problems?
> > Thanks,
> > Barb Reinhardt
> >
> > "Barb Reinhardt" wrote:
> >
> > > 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
> > >
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      17th Sep 2008
I'm not sure what etc means here. So maybe or maybe not.

Barb Reinhardt wrote:
>
> 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
>
> "Dave Peterson" wrote:
>
> > 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.
> >
> > Barb Reinhardt wrote:
> > >
> > > I just discovered that my default printer was "Opening". Could this be
> > > related to my copy as picture problems?
> > > Thanks,
> > > Barb Reinhardt
> > >
> > > "Barb Reinhardt" wrote:
> > >
> > > > 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
> > > >
> > > >

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access takes 24-35 seconds while SQL Server takes only 2-3 seconds =?Utf-8?B?QXJpZg==?= Microsoft Access VBA Modules 9 4th Mar 2007 11:31 AM
in Excel, after cell copy takes few seconds to appear the cursor Trish Windows XP General 2 2nd Mar 2007 07:55 PM
Word takes 20 seconds to load and 15 seconds to unload. Why? =?Utf-8?B?Wi1SZXk=?= Microsoft Word Document Management 1 30th Apr 2005 12:25 AM
Missing Picture Tasks "Copy to CD or Copy all items to CD" Janet Windows XP Setup 1 6th Jun 2004 10:39 PM
Copy of Copy in picture folder =?Utf-8?B?QWRyaWVubmU=?= Windows XP Help 2 28th May 2004 09:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 AM.