So your word document when you start this processes now has 8 tables. The seven leading tables, and the final conclusion table.
Then with your code you might create from 1 to 10 additional objective tables. However, the code you posted only adds 1 table. Resulting in a maximum of 9 table in the finished document. So either a) you posted the wrong code, or b) your original document that you are using with a template has 19 tables.
What is the code you are using that creates up to 10 tables? In other words, there is nothing in the code you posted that:
For lngIndex = 1 to SomeNumberUpTo10
oWordDoc.Tables.Add
Next lngIndex
|