performance - Copy Chart & Print Very Slow VBA -


i have performance problem , google doesn't me. person has same problem : http://excel.bigresource.com/copy-chart-print-very-slow-1eesa883.html

when copy excel chart vba : slooooow.

  dim mychart chartobject     each mychart in consopdc.chartobjects         mychart.copy         ...     next 

any idea makes faster ? information objective paste them in powerpoint.

the weird thing making manually isn't slow @ all

thanks. nico.

because making copy powerpoint, i'll suggest try out code:

mychart.copypicture appearance:=xlscreen, format:=xlbitmap 

found in ms-help , here

also found nice hint here, according to, following code should faster

mychart.chartarea.copy 

testet on small scale demo, excited hear big scale results :) nice have comparision in seconds, when try out.

edit: thing watch out - memory leaks

if extensive copy clipboard should watch out clean afterwards, otherwise might fill memory quite fast ;) result in weak performance, many systems might move data pagefile, slowing access down.

edit: if should last bit of second , if have many charts copy

using for each slower iterate through objects neat loop. however, code not neat using for each, if sec/millisec counts 1 should compare them against each other.

i found in specialized book of micheal schwimmer, tested , suprised. not sure anymore in circumstances, tested on bigger scale , confirmed.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -