I'm trying to build a macro in Excel using VBA
– it should convert a slew of rows of strings like “YU-RN-PE-LT-JW-MN”
into other things “L3,N6,W2,P9,V7,F2”
(the dashes also ought to become commas) according to an arbitrary table specifying “YU”
in one column, “L3”
in another and so on.
It's the table thing that complicates normal search and find, and the repeated looking that makes normal Vlookup inadequade.
Would appreciate any help. Also please note that I've never used VBA before trying to build this macro, so assume I don't know anything.
Here is some sample code that does what you're trying to accomplish.