Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If there are some that you could Group into a single object? That
should speed up rendering. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 "Stentko" wrote in message ... 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. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 "Peter T" wrote: 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 "Stentko" wrote in message ... 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel document with shapes on it but the shapes do not print | Excel Worksheet Functions | |||
Slow Excel Navigation with Up / Down Arrow and slow scrolling | Excel Discussion (Misc queries) | |||
When drawing shapes in excel the shapes keep disappearing | Excel Discussion (Misc queries) | |||
How can i get more 3D shapes for Auto shapes in excel? | Excel Discussion (Misc queries) | |||
How can i get more 3D shapes for Auto shapes in excel? | Excel Discussion (Misc queries) |