I have a varying number of tables in documents I create with the following structure:
+-----------------+--------------+
| Heading R1C1 | Heading R1C2 |
| Paragraph R1C1 | |
+-----------------+--------------+
| Paragraph R2C1 |
+--------------------------------+
Now I want a automatically generated table at the beginning of the document with the following structure and content:
+--------------+-----------------+
| Heading R1C2 | Heading R1C1 |
| | Paragraph R2C1 |
+--------------+-----------------+
How can I accomplish this? It would be ok for me if the heading is moved into an extra row if this makes things easier. I'm using Word 2013.
But just to clarify, your generated table would include one row for each of the other tables ?
That's correct. But before I'd start coding VBA I'd chose another solution where I have easier control over my layout like HTML/CSS.