View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
trickdos[_19_] trickdos[_19_] is offline
external usenet poster
 
Posts: 1
Default Optimizing a macro for speed- find and replace


Hey all, Thanks for your help.

I have a workbook with 2 sheets with 24,000 rows and 10 columns o
data, and I need to do a find and replace for all "#Missing" values an
return an empty cell. This takes forever. Is there anyway to optimiz
the macro to run much faster?



Application.ScreenUpdating = False

With Application
.Calculation = xlManual
End With

Sheets("Version 1").Select
Cells.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByColumns

ActiveWorkbook.PrecisionAsDisplayed = False
With Application
.Calculation = xlAutomatic
.MaxChange = 0.001
End With
ActiveWorkbook.PrecisionAsDisplayed = False
Application.ScreenUpdating = Tru

--
trickdo
-----------------------------------------------------------------------
trickdos's Profile: http://www.excelforum.com/member.php...nfo&userid=940
View this thread: http://www.excelforum.com/showthread.php?threadid=27756