Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Slow Function

I am using a search and replace in a function to change a
text 0 to a numeric 0 but it seems to be running to long,
here is the code

ActiveSheet.Cells.Select
Selection.Replace What:="0", Replacement:="0",
LookAt:=xlPart, _
SearchOrder:=xlByColumns, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False

Is there anything more efficient than this

Thanks

Nige
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Slow Function

Application.Calculation = xlManual
ActiveSheet.Cells.SpecialCells(xlConstants,xlTextV alues).Select
Selection.Replace What:="0", Replacement:="0",
LookAt:=xlPart, _
SearchOrder:=xlByColumns, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False

Application.Calculation = xlAutomatic

--
Regards,
Tom Ogilvy

"Nigel Bennett" wrote in message
...
I am using a search and replace in a function to change a
text 0 to a numeric 0 but it seems to be running to long,
here is the code

ActiveSheet.Cells.Select
Selection.Replace What:="0", Replacement:="0",
LookAt:=xlPart, _
SearchOrder:=xlByColumns, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False

Is there anything more efficient than this

Thanks

Nige



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
Re-calculate function too slow CB Excel Discussion (Misc queries) 1 November 27th 07 02:39 PM
slow replace function hiwan99 Excel Worksheet Functions 3 July 6th 05 11:49 PM
macro function is too slow! Tommy Brown Excel Programming 4 April 22nd 04 07:54 PM
Optimize Slow function Kent Schederin Excel Programming 3 February 17th 04 05:56 PM


All times are GMT +1. The time now is 09:06 PM.

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"