PDA

View Full Version : Do until you no longer firnd "#"



schroederd1
10-07-2011, 08:10 PM
How do I write a Do Until Loop that will find "#" and replace with "0" untill there are no more "#". maybe a Do Until is not the best way to go about this. I'm open to any options.

thanks,
Donna

frank_m
10-07-2011, 09:32 PM
Sub Macro1()
Cells.Replace What:="#", Replacement:="0", LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
End Sub

Compliments of the Macro Recorder :)