Hi kosti,
Your data layout is for sure not "one of the easiest to work with", so may be it is not a good piece of code to make your first steps with VBA.
Anyway, see such a proposition of code (also working in attachment)
Aside from main code I added checking for several exceptions
- some not really expected (like not enough space in second column)
- or more probable - like copying something into several cells at once - for instance U4:X7
The code with comments looks now as follows:
As I said - it would be much more strightforward (so a good piece to start developing programming skills) your if you would have for instance all 12 pairs for each test in one column and all test one by one in row or in column.
I mean setup like the one shown for reference in the picture.
Anyway - the above code works with the desired layout. and the only a bit more complicated part is using integer division (\) operator and mod operator to locate interesting cells location in desired sequence.
Off-topic:
Have a good trip and unforgetable stay in Krakow.
In my opinion an absolute must-see are Old Cloth Market Cellars (opened for the public just a year ago, with superb multimedia tour) and Wieliczka Salt Mine.
Of course hundreds more, just to start with Mariacki Church, Wawel Castle, Old Synagogue, Collegium Maius in Jagiellonian University, Schindler’s Factory, etc., etc.
Bookmarks