NiccoExcel
New Member
- Joined
- Oct 30, 2015
- Messages
- 6
I have a single column range with strings of text similar to this:
LIST 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]COLUMN A[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]LID, PLATTER PLSK CLEAR[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]SAUCE, CHILI MANGO[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]SAMPLE, SWEET STREET[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]SAUCE, ****TAIL SEAFOOD[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 458"]
<colgroup><col></colgroup><tbody>[TR]
[TD]
My list contains about 42,000 items. I need to replace words in this list with a predefined list of acronyms/abbreviations found on another sheet. like this:
LIST 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Abbreviation/Acronym[/TD]
[TD]Definition[/TD]
[/TR]
[TR]
[TD]ALUM[/TD]
[TD]Aluminium[/TD]
[/TR]
[TR]
[TD]BKD[/TD]
[TD]Baked[/TD]
[/TR]
[TR]
[TD]CHOC[/TD]
[TD]Chocolate[/TD]
[/TR]
[TR]
[TD]CKD[/TD]
[TD]Cooked[/TD]
[/TR]
</tbody>[/TABLE]
I need to create a macro that will review each item on LIST 1 and replace all words found in the "Definition" column of LIST 2 and replace the word with it's "Abbreviation/Acronym" counterpart.
I want the macro to loop through each item on LIST 1 so I don't have to run it multiple times.
I have tried recording a macro but I am not familiar enough with VBA to properly define the WHAT and REPLACEMENT parameters of the REPLACE method without selecting a static cell reference.
Any help would be appreciated. Thanks![/TD]
[/TR]
</tbody>[/TABLE]
LIST 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]COLUMN A[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]LID, PLATTER PLSK CLEAR[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]SAUCE, CHILI MANGO[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]SAMPLE, SWEET STREET[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 458"]
<tbody>[TR]
[TD="width: 458"]SAUCE, ****TAIL SEAFOOD[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 458"]
<colgroup><col></colgroup><tbody>[TR]
[TD]
My list contains about 42,000 items. I need to replace words in this list with a predefined list of acronyms/abbreviations found on another sheet. like this:
LIST 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Abbreviation/Acronym[/TD]
[TD]Definition[/TD]
[/TR]
[TR]
[TD]ALUM[/TD]
[TD]Aluminium[/TD]
[/TR]
[TR]
[TD]BKD[/TD]
[TD]Baked[/TD]
[/TR]
[TR]
[TD]CHOC[/TD]
[TD]Chocolate[/TD]
[/TR]
[TR]
[TD]CKD[/TD]
[TD]Cooked[/TD]
[/TR]
</tbody>[/TABLE]
I need to create a macro that will review each item on LIST 1 and replace all words found in the "Definition" column of LIST 2 and replace the word with it's "Abbreviation/Acronym" counterpart.
I want the macro to loop through each item on LIST 1 so I don't have to run it multiple times.
I have tried recording a macro but I am not familiar enough with VBA to properly define the WHAT and REPLACEMENT parameters of the REPLACE method without selecting a static cell reference.
Any help would be appreciated. Thanks![/TD]
[/TR]
</tbody>[/TABLE]