Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Find/Replace functions VERY slow when visibility = false

When trying to automate the find/replace functions I am running into an issue
where the process takes several minutes when I set the instance's visibility
property to false. The same process takes only seconds when I set the
visibilito to true.

A requirement is that this is kept hidden so I cannot leave the visibilty
set to true. I have also tried selecting and activating the range with no
difference in results.

Can anyone explain the reason why the visibility property has this effect on
the find and replace functions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Find/Replace functions VERY slow when visibility = false

I am not saying that yoiur description is incorrect but it does sound odd. My
best guess as to wha tis actually affecting your code is that with each
replacement the book is recalculating. That would account for the speed
issue. To test this assumption turn off calculation (tools - options -
Calculation) and try re-running your macro. If that fixes the speed issue
then use code something like this...

Sub Whatever
On error goto ErrorHandler
application.calculation = xlManual
'Your replace code here...
Errorhandler:
application.calculation = xlAutomatic
End sub
--
HTH...

Jim Thomlinson


"erickras" wrote:

When trying to automate the find/replace functions I am running into an issue
where the process takes several minutes when I set the instance's visibility
property to false. The same process takes only seconds when I set the
visibilito to true.

A requirement is that this is kept hidden so I cannot leave the visibilty
set to true. I have also tried selecting and activating the range with no
difference in results.

Can anyone explain the reason why the visibility property has this effect on
the find and replace functions?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Find/Replace functions VERY slow when visibility = false

Thanks Jim, unfortunately this had no effect.

"Jim Thomlinson" wrote:

I am not saying that yoiur description is incorrect but it does sound odd. My
best guess as to wha tis actually affecting your code is that with each
replacement the book is recalculating. That would account for the speed
issue. To test this assumption turn off calculation (tools - options -
Calculation) and try re-running your macro. If that fixes the speed issue
then use code something like this...

Sub Whatever
On error goto ErrorHandler
application.calculation = xlManual
'Your replace code here...
Errorhandler:
application.calculation = xlAutomatic
End sub
--
HTH...

Jim Thomlinson


"erickras" wrote:

When trying to automate the find/replace functions I am running into an issue
where the process takes several minutes when I set the instance's visibility
property to false. The same process takes only seconds when I set the
visibilito to true.

A requirement is that this is kept hidden so I cannot leave the visibilty
set to true. I have also tried selecting and activating the range with no
difference in results.

Can anyone explain the reason why the visibility property has this effect on
the find and replace functions?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Find/Replace functions VERY slow when visibility = false

Post your code... Perhaps there is something in there...
--
HTH...

Jim Thomlinson


"erickras" wrote:

Thanks Jim, unfortunately this had no effect.

"Jim Thomlinson" wrote:

I am not saying that yoiur description is incorrect but it does sound odd. My
best guess as to wha tis actually affecting your code is that with each
replacement the book is recalculating. That would account for the speed
issue. To test this assumption turn off calculation (tools - options -
Calculation) and try re-running your macro. If that fixes the speed issue
then use code something like this...

Sub Whatever
On error goto ErrorHandler
application.calculation = xlManual
'Your replace code here...
Errorhandler:
application.calculation = xlAutomatic
End sub
--
HTH...

Jim Thomlinson


"erickras" wrote:

When trying to automate the find/replace functions I am running into an issue
where the process takes several minutes when I set the instance's visibility
property to false. The same process takes only seconds when I set the
visibilito to true.

A requirement is that this is kept hidden so I cannot leave the visibilty
set to true. I have also tried selecting and activating the range with no
difference in results.

Can anyone explain the reason why the visibility property has this effect on
the find and replace functions?

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
Find replace in functions J.Mart Excel Discussion (Misc queries) 2 November 18th 07 04:10 AM
Dynamic Find and Replace String Within Functions Based on Column Values [email protected] Excel Programming 0 October 13th 05 06:16 PM
slow replace function hiwan99 Excel Worksheet Functions 3 July 6th 05 11:49 PM
How come replace is so slow? Nathan Excel Discussion (Misc queries) 2 March 23rd 05 03:33 AM
Arrays to replace very slow loops ? vbastarter Excel Programming 5 August 10th 04 07:15 PM


All times are GMT +1. The time now is 01:56 AM.

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

About Us

"It's about Microsoft Excel"