Hi,
I have been suggested following program to replace values in Col G.
Is this possible to convert this procedure into a function, so that I can use it for any Column (not only for Col G). This idea will help me convert remaining procedures.
[vba]
Public Sub ReplaceColG()
Dim lLR As Long
Dim r As Range
lLR = Range("G" & Rows.Count).End(xlUp).Row
For i = 2 To lLR
If Range("G" & i).Value <> "" Then
Set r = Columns("C:C").Find(What:=Range("G" & i).Value, _
LookIn:=xlValues, LookAt:=xlWhole)
If Not r Is Nothing Then
Range("G" & i).Value = r.Offset(, -1).Value
End If
End If
Next i
End Sub
[/vba]