PC Review


Reply
Thread Tools Rate Thread

2003: Slow Response on ClearContents

 
 
RCL2884
Guest
Posts: n/a
 
      29th Nov 2007
When I use ClearContents in Excel 2003 I get a very slow response, when
clearing many rows. For example, if I clear about 30 columns and 30,000 rows,
it might take 10 minutes. If I run the same procedure

For example: Range("A1:AD30000").ClearContents

on a different computer, it takes less than a second. What is going on? I
have looked through all the settings, but do not see anything obvious.

I am using XP-Pro, with a 2.66 Mhz dual core Xeon processor, with 2 GB of
ram, and so the system should not be an issue. This problem began suddenly
several months ago and has persisted through a reinstall of Office 2003. It
is driving me crazy.

Thanks,
Rick

 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      29th Nov 2007
Check you worksheet code modules for Worksheet_Change code, or any code in
the stanadard module or formulas in the worksheet cells that might trigger
from changes in the cells value and would recalculate.

"RCL2884" wrote:

> When I use ClearContents in Excel 2003 I get a very slow response, when
> clearing many rows. For example, if I clear about 30 columns and 30,000 rows,
> it might take 10 minutes. If I run the same procedure
>
> For example: Range("A1:AD30000").ClearContents
>
> on a different computer, it takes less than a second. What is going on? I
> have looked through all the settings, but do not see anything obvious.
>
> I am using XP-Pro, with a 2.66 Mhz dual core Xeon processor, with 2 GB of
> ram, and so the system should not be an issue. This problem began suddenly
> several months ago and has persisted through a reinstall of Office 2003. It
> is driving me crazy.
>
> Thanks,
> Rick
>

 
Reply With Quote
 
rleavitt@smithgroupre.com
Guest
Posts: n/a
 
      29th Nov 2007
On Nov 29, 9:47 am, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> Check you worksheet code modules for Worksheet_Change code, or any code in
> the stanadard module or formulas in the worksheet cells that might trigger
> from changes in the cells value and would recalculate.
>


Thanks for the reply. As far as I can tell I do not have any reference
to Worksheet_Change in any modules. I note that the delay on
ClearContents occurs even when automatic calculation is set to False.
Another clue... it takes longer to clear cells the farther down on the
sheet I go. For example, rows 1-100 clear quickly, but rows
20001-20100 take a long time.


 
Reply With Quote
 
rleavitt@smithgroupre.com
Guest
Posts: n/a
 
      1st Dec 2007
On Nov 29, 10:05 am, rleav...@smithgroupre.com wrote:
> When I useClearContentsin Excel2003I get a veryslowresponse, when
> clearing many rows. For example, if I clear about 30 columns and 30,000 rows,
> it might take 10 minutes. If I run the same procedure


I have found a solution to this problem (sort of). The delay is
eliminated if I issue the following command before clearing the cells.

Application.EnableEvents = False

As I understand it, an "Event" is something like opening or closing a
sheet, or other things such as clicking on or changing a cell, etc. I
have not added any code pertaining to eny event and so I am not sure
why disabling the event checking should work. As I mentioned, this
problem occurs on some computers and not others, regardless of what
workbook is open, and so it must relate to a general or global
setting. I cannot find anything in the various options that seems
relevant. Any suggestions of where to look? Since the slow response
occurs even when I clear cells in the sheet (and not by using a macro)
I would like to be able to change a setting that eliminates the
problem for good.

Thanks in advance for any suggestions.
....Rick
 
Reply With Quote
 
Charles Williams
Guest
Posts: n/a
 
      1st Dec 2007
Hi Rick,

Do you have Excel 2007 installed?
If you do not have it installed then I think its something to do with
updating the system with Microsoft Update.

Anyway Enablevents=False seems to solve the problem

Charles
_________________________________________
UK Cambridge XL Users Conference 29-30 Nov
http://www.exceluserconference.com/UKEUC.html

<(E-Mail Removed)> wrote in message
news:5f984963-b53e-48ce-b62d-(E-Mail Removed)...
> On Nov 29, 10:05 am, rleav...@smithgroupre.com wrote:
>> When I useClearContentsin Excel2003I get a veryslowresponse, when
>> clearing many rows. For example, if I clear about 30 columns and 30,000
>> rows,
>> it might take 10 minutes. If I run the same procedure

>
> I have found a solution to this problem (sort of). The delay is
> eliminated if I issue the following command before clearing the cells.
>
> Application.EnableEvents = False
>
> As I understand it, an "Event" is something like opening or closing a
> sheet, or other things such as clicking on or changing a cell, etc. I
> have not added any code pertaining to eny event and so I am not sure
> why disabling the event checking should work. As I mentioned, this
> problem occurs on some computers and not others, regardless of what
> workbook is open, and so it must relate to a general or global
> setting. I cannot find anything in the various options that seems
> relevant. Any suggestions of where to look? Since the slow response
> occurs even when I clear cells in the sheet (and not by using a macro)
> I would like to be able to change a setting that eliminates the
> problem for good.
>
> Thanks in advance for any suggestions.
> ...Rick



 
Reply With Quote
 
rleavitt@smithgroupre.com
Guest
Posts: n/a
 
      2nd Dec 2007
On Dec 1, 4:47 pm, "Charles Williams" <Char...@DecisionModels.com>
wrote:
> Hi Rick,
>
> Do you have Excel 2007 installed?
> If you do not have it installed then I think its something to do with
> updating the system with Microsoft Update.
>


Nope... I am using Excel 2003 that has been fully updated. When the
problem first occurred a couple of months ago, I thought it might be
due to a recently installed update, and so I backed out the update,
but to no effect. I also reinstalled Excel 2003, and this did not
help. I will stop perseverating on this since I have a work-around. I
just wish I understood what is happening.
....Rick
 
Reply With Quote
 
Charles Williams
Guest
Posts: n/a
 
      2nd Dec 2007
Hi Rick,

On my systems ( with 5 versions of XL installed) I get the following results

With Enable events switched ON:
XL97 Very fast
XL2000 Slow
XL2002 Slower
XL2003 Even slower
XL2007 Over 3 Minutes

This happens with Clear, ClearContents, and Delete

With EnableEvents switched OFF all versions are very fast.

On Saturday we tested this on a system (XL 2003 only & Win XP SP2) that did
not have the latest updates and it was fast.

Since your system does not have XL2007 installed I think we can narrow it
down to some fairly recent update.

regards
Charles
_________________________________________
UK Cambridge XL Users Conference 29-30 Nov
http://www.exceluserconference.com/UKEUC.html

<(E-Mail Removed)> wrote in message
news:15d7c9d9-f8a5-4ddf-8805-(E-Mail Removed)...
> On Dec 1, 4:47 pm, "Charles Williams" <Char...@DecisionModels.com>
> wrote:
>> Hi Rick,
>>
>> Do you have Excel 2007 installed?
>> If you do not have it installed then I think its something to do with
>> updating the system with Microsoft Update.
>>

>
> Nope... I am using Excel 2003 that has been fully updated. When the
> problem first occurred a couple of months ago, I thought it might be
> due to a recently installed update, and so I backed out the update,
> but to no effect. I also reinstalled Excel 2003, and this did not
> help. I will stop perseverating on this since I have a work-around. I
> just wish I understood what is happening.
> ...Rick



 
Reply With Quote
 
rleavitt@smithgroupre.com
Guest
Posts: n/a
 
      2nd Dec 2007
On Dec 2, 4:17 am, "Charles Williams" <Char...@DecisionModels.com>
wrote:
> Since your system does not have XL2007 installed I think we can narrow it
> down to some fairly recent update.
>


Thanks for testing. I think you must be right... I thought I
uninstalled the updates that occurred around the time the issue first
appeared, but I may not have done that right. I will just turn
"EnableEvents" off as a matter of course, and turn it on, if I want to
actually to Event driven code. I will just add it to my (long) list of
Excel annoyances.
....Rick
 
Reply With Quote
 
Charles Williams
Guest
Posts: n/a
 
      6th Dec 2007
Hi Rick,

Turns out its probably the Google Desktop Office Addin.

Uninstall or switching off the COM addin seems to solve the problem.

Charles
_________________________________________
FastExcel 2.3
Name Manager 4.0
http://www.DecisionModels.com

<(E-Mail Removed)> wrote in message
news:f347ac9e-2ca3-420a-ba30-(E-Mail Removed)...
> On Dec 2, 4:17 am, "Charles Williams" <Char...@DecisionModels.com>
> wrote:
>> Since your system does not have XL2007 installed I think we can narrow it
>> down to some fairly recent update.
>>

>
> Thanks for testing. I think you must be right... I thought I
> uninstalled the updates that occurred around the time the issue first
> appeared, but I may not have done that right. I will just turn
> "EnableEvents" off as a matter of course, and turn it on, if I want to
> actually to Event driven code. I will just add it to my (long) list of
> Excel annoyances.
> ...Rick



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow Word Response (2003/XP) VioletDC Microsoft Word Document Management 3 6th Dec 2009 11:49 PM
SLOW Response on EXCEL 2003 EricB Microsoft Excel Discussion 6 3rd Dec 2008 11:00 AM
Exchange 2003 and Outlook 2003 slow response =?Utf-8?B?UGVhcmw=?= Microsoft Outlook Discussion 0 1st Nov 2006 02:23 PM
Re: Excel 2003 Slow Response Nick Hodge Microsoft Excel Setup 0 16th Apr 2006 08:21 PM
office 2003 slow response =?Utf-8?B?amIwMTAw?= Windows XP Performance 0 9th Aug 2005 04:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 PM.