I am working on modification of a translation document that utilizes references for duplicate strings.
I want to run a macro that finds the REF:x,
Sample Table
| REF | en-US |
|---|---|
| REF:1 | Acknowledge |
**REF:x** |
Expected Result
| REF | en-US |
|---|---|
| REF:1 | Acknowledge |
| Acknowledge |
- Selects and copies the word next to it,
- Then searches for every instance of
**REF:x** - Then replace with the copied word.
I have a macro recorded in Notepad++, that is working on a CSV that is opened there.
My question is how can I automate it to increment x and run it over all ~1500 references.
I can't do this in Excel due to the ** in the fields. Searching for ** just yields everything.
If there is a way to complete this within Excel, that would be excellent, but I can't think of anything. I would be open to other solutions as well.
I am just not wanting to manually perform the operation.
I recorded a macro in Notepad++ that does work, but it is specific to a certain number, i.e. REF:1, and I am needing to run this for REF:x on a loop with x increasing.
This is the recorded macro
<Macro name="Translation1" Ctrl="no" Alt="no" Shift="no" Key="0">
<Action type="3" message="1700" wParam="0" lParam="0" sParam=""/>
<Action type="3" message="1601" wParam="0" lParam="0" sParam="REF:1,"/>
<Action type="3" message="1625" wParam="0" lParam="0" sParam=""/>
<Action type="3" message="1702" wParam="0" lParam="768" sParam=""/>
<Action type="3" message="1701" wParam="0" lParam="1" sParam=""/>
<Action type="0" message="2178" wParam="0" lParam="0" sParam=""/>
<Action type="3" message="1700" wParam="0" lParam="0" sParam=""/>
<Action type="3" message="1601" wParam="0" lParam="0" sParam="**REF:1**"/>
<Action type="3" message="1625" wParam="0" lParam="0" sParam=""/>
<Action type="3" message="1602" wParam="0" lParam="0" sParam="Acknowledge"/>
<Action type="3" message="1702" wParam="0" lParam="768" sParam=""/>
<Action type="3" message="1701" wParam="0" lParam="1609" sParam=""/>
</Macro>

