Adding tables to a word file

Hello folks,

 

right now I'm working on a script which adds several tables to a word file.

But right now I'm facing the issue that the newest table overwrites the old table instead of appending it to the file.

 

Is there any good source for working with ms word and hp uft?

 

Greetings