Thank you for the effort you put in.

I couldn't write that ever. So I made dummy files with just 2-3 entries to execute the code and it was partially successful.
It gave an runtime error of subscript being outside range, I pressed 'end' and then it copied two meanings into the file but left the last one out. The green and red colors were also lost. I've attached the files here. Files have just 2-3 sentences.
If you can let me know why it didn't work or if you can send the dummy files you might have used to test the code, that'd be great. Many thanks! Truly.