Slow excel because of shapes?

S

Stentko

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

Nick Hebb

If there are some that you could Group into a single object? That
should speed up rendering.
 
P

Peter T

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
 
S

Stentko

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
 

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