View Single Post
 
Old 10-15-2014, 11:58 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote