fyi the row = row + 1 part works as well, as the first column was filled because of that loop

i have also tried using a separate function to do the row filling, so

while col < the column after the table ends (determined by a short formula)

call row filler

col = col + 1 <------

wend

but the same issue arises