In xls book with data column (50.000) numbers as text - (about 10.000 unique, others are duplicates -must not delete duplicates)I need to replace all numbers with new text (OBV, BLAG,..)
I have separate table with unique 10.000 numbers (1032226,1020051,...).They must be converted with defined, another text(1032226>OBV, 1020051>OBV, 1120009>BLAG,..).
When I create all raplaces in code, I get error: too much lines in code.
Selection.Replace What:="1032226", Replacement:="OBV ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1020051", Replacement:="OBV ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1120009", Replacement:="BLAG ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1170042", Replacement:="BLAZA ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1130112", Replacement:="OBV ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1150111", Replacement:="BLAZA ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1070050", Replacement:="BLAZA ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1070048", Replacement:="DEPO ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
Selection.Replace What:="1050062", Replacement:="DEPO ", LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=True
How avoid too long code?
Thanks
Bojzon