Hello all,
Currently I have written a macro that converts values in a cell to values mapped in another tab list.
My code is:
The problem is I have TypeA, TypeB in the cell and I want it to convert to the mapped values of A, B.
How do I modify it so that it will convert the cell containing : TypeA, TypeB rather than just TypeA?
Please help!
Currently I have written a macro that converts values in a cell to values mapped in another tab list.
My code is:
Code:
Sub DataFormatPR()
Dim PremiumType
Set PremiumType = Sheets("PremiumType").Range("PremiumType")
For Each cel In PremiumType.Columns(1).Cells
MainTemp.Replace what:=cel.Value, replacement:=cel.Offset(0, 1).Value, LookAt:=xlWhole
Next cel
End Sub
How do I modify it so that it will convert the cell containing : TypeA, TypeB rather than just TypeA?
Please help!