schnellvin
New Member
- Joined
- Dec 14, 2012
- Messages
- 4
Hi I would like to use a loop to do a find and replace in excel.
Here is the code
Any help is appreciated. Thanks
Schnellvin
Here is the code
Sub findConvertGas()
Set rng1 = Cells.Find(What:="CO[2]", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
If rng1 Is Nothing Then
MsgBox ("No CO[2] to convert")
Else
rng1.Activate
'run sub procedure
Call convertCO2
End If
End Sub
Any help is appreciated. Thanks
Schnellvin