Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Slow excel because of shapes?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stentko - 21 Nov 2007 10:41 GMT
I have made a rather graphic interface for one of my models and in this
interface a use a lot of shapes, some of which I use as buttons. The problem
is that excel redraws all the shapes, even when for instants only one or two
shapes change color. This causes excel to run very slow, resulting in about
0,5 sec of redraw time, every time you push a button. I have tried:

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False

My question: how can I use a large amount of shapes without excel slowing
down?

I am using Excel 2003.
Nick Hebb - 21 Nov 2007 11:06 GMT
If there are some that you could Group into a single object? That
should speed up rendering.
Peter T - 21 Nov 2007 11:55 GMT
Roughly how many shapes are do you have, and what exactly are you doing that
causes your shapes to redraw, and how are you changing colour (eg change
Colorindex, RGB-color, customize palette)

FWIW, I don't have any problem with say 1,000 shapes on a sheet in my old
slow system, except notably shapes with 2-color diagonal gradient fill's
which are very slow to redraw (even in more modern systems).

The application settings you mention are unlikely to help, disabling
calculation or events will do nothing in this respect (unless some event
directly leads to a redraw). Disabling screen updating can help if changing
things in a loop though, depending on context, can actually make the problem
worse if when re-enabled causes an unnecessary redraw. On which point, are
you by chance toggling screenupdating on/off in some loop - if so ensure you
don't.

Regards,
Peter T

> I have made a rather graphic interface for one of my models and in this
> interface a use a lot of shapes, some of which I use as buttons. The problem
[quoted text clipped - 10 lines]
>
> I am using Excel 2003.
Stentko - 21 Nov 2007 12:46 GMT
I removed one shape with a 2-color gradient and the problem is solved,
strange...

Thank you very much, this saves me a lot of time!

Regards,
Stentko

> Roughly how many shapes are do you have, and what exactly are you doing that
> causes your shapes to redraw, and how are you changing colour (eg change
[quoted text clipped - 32 lines]
> >
> > I am using Excel 2003.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.