Hi,
I have a problem with a nested loop in my macro as Excel hangs every time i run my script.
I suspect it is because my sheets have too many elements.
I am doing a software localization, and I need to translate records in column A (english) to column X (slovenian) in the same row. With each new version of the software, the number of rows changes.
I already manually did one translation (44000 rows), and now i need to do a new version translation, so I want to use my old translation (because many if not most of the elements are the same) and insert values into the new excel file.
In the new file in sheet1 I have a full column A with english words and an empty C column with slovenian words that I need to fill.
Into sheet2 I copied the old english in column A and slovenian translation in column B.
On sheet 3 i created a button that when clicked, goes though each row in sheet1.columnA, compares it to sheet2.colimnA, and if there is a match, copies the value from sheet2.columnB into sheet1.columnC.
So, this should fill most of the translations I need to do, and the rest I will do manually
I am quite new to VBA so this is what I came up with:
The number of rows is around 44000 in each sheet.![]()
Please Login or Register to view this content.
Can someone advise me as to how i could optimize or even completely avoid the nested loop, because each time i click the button i need to wait for almost an hour and then Excel hangs.
Thank you
Bookmarks