Thanks for the prompt reply,
macropod!
When I try your solution, I do not find any difference in effect. See screenshots for comparison:
Before,
After
However I will try and incorporate your suggestions in my main script to see if it will make any difference there.
I like how you do not operate with Selection and Move at all, but instead name the absolute coordinates of the cells.
Would you have any suggestion on how to handle multiple lines though? The script I showed will be used to add multiple lines to the same table, and it will not know if there exist lines before, or how many in total. In effect I have 3 scripts: One to start the table and add headlines, one to add a new line (the first and any additional), and another one to end the table and continue with normal text. They will all be called from external source and for some reason, when all is said and done, the table columns do still not have correct width and document is saved in wrong state.