Hi Guys,
Thanks for the support provided by your forum that I've just joined
I'm using with good profit a macro that replace value in column A if found in column C with a value in column B.
Now I would need to have the destination cell for the replaced value be formatted with green fill.
Macro is the one below, could you please suggest how to add the green fill format for the replaced values?
End SubPHP Code:Sub ReplaceText()
For Each vCell In Range("A2:A200").Cells
Columns("C:C").Cells.Replace What:=vCell, Replacement:=vCell.Offset(0, 1).Value, LookAt:=xlWhole, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Next vCell
Many thanks in advance!











LinkBack URL
About LinkBacks

Register To Reply

Bookmarks