Hi Friends,
I am new to vba.
I have a lookup table that contains main strings and their relevant replacement strings. say for example
Col A Col B
Old string1 New string1
Old string2 New string2 .....n
My problem is, i want to replace multiple instances of original old string to be replaced with new replacement string (provided in a lookup table) in another tab, which has multiple columns
My ColA old strings actually are substrings in another tab. e.g. seven wondersOld string1greatwallofchina
The output should be like: seven wondersNew string1greatwallofchina
I even tried the code, that was provided at
http://www.excelforum.com/excel-gene...-a-string.html
But some sort of runtime error pops up. I just can't figure out what's wrong in the code. My code is
My code:
Here is the sample file, on which i tried that code. Actual file of me spans >50 columns and >5000 rows.
Bookmarks