Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default update of worksheet cell extremely slow

Hi!

We have a very simple VBA procedure that generates and writes random numbers
into a worksheet cell. On most of our client computers this runs as fast as
you would expect but on a few of them it takes forever. We have not been able
to figure out why. Anyone out there who knows what could make excel consume
huge amounts of cpu cycles when writing to a worksheet cell?

/MÃ¥ns
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default update of worksheet cell extremely slow

Have you done the following before execution

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

And at the end

Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

HTH,
Barb Reinhardt

"MÃ¥ns TÃ¥nneryd" wrote:

Hi!

We have a very simple VBA procedure that generates and writes random numbers
into a worksheet cell. On most of our client computers this runs as fast as
you would expect but on a few of them it takes forever. We have not been able
to figure out why. Anyone out there who knows what could make excel consume
huge amounts of cpu cycles when writing to a worksheet cell?

/MÃ¥ns

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default update of worksheet cell extremely slow

I would add to that list

Application.EnableEvents = False
' your code
Application.EnableEvents = True

It is possible that there is a change event handler somewhere that is
executing every time a cell's value is changed.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Tue, 24 Mar 2009 08:04:06 -0700, Barb Reinhardt
wrote:

Have you done the following before execution

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

And at the end

Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

HTH,
Barb Reinhardt

"Måns Tånneryd" wrote:

Hi!

We have a very simple VBA procedure that generates and writes random numbers
into a worksheet cell. On most of our client computers this runs as fast as
you would expect but on a few of them it takes forever. We have not been able
to figure out why. Anyone out there who knows what could make excel consume
huge amounts of cpu cycles when writing to a worksheet cell?

/Måns

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default update of worksheet cell extremely slow

Such as the Google Desktop Office automation addin

Charles
___________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"Chip Pearson" wrote in message
...
I would add to that list

Application.EnableEvents = False
' your code
Application.EnableEvents = True

It is possible that there is a change event handler somewhere that is
executing every time a cell's value is changed.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Tue, 24 Mar 2009 08:04:06 -0700, Barb Reinhardt
wrote:

Have you done the following before execution

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

And at the end

Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

HTH,
Barb Reinhardt

"Måns Tånneryd" wrote:

Hi!

We have a very simple VBA procedure that generates and writes random
numbers
into a worksheet cell. On most of our client computers this runs as fast
as
you would expect but on a few of them it takes forever. We have not been
able
to figure out why. Anyone out there who knows what could make excel
consume
huge amounts of cpu cycles when writing to a worksheet cell?

/Måns




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opens extremely slow DrYauney Excel Discussion (Misc queries) 0 July 16th 07 07:22 PM
Extremely Slow Scrolling WorkSheet Ken Excel Discussion (Misc queries) 5 May 29th 07 11:21 PM
Copy and paste link in worksheet is extremely slow. What to doÉ Franco Excel Discussion (Misc queries) 0 September 21st 05 04:41 PM
Extremely slow run-time Steph[_3_] Excel Programming 6 June 11th 04 04:16 AM


All times are GMT +1. The time now is 08:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"