Merge tables column wise

C

chaekri

I am using Word 2003 on Windows XP SP2. I want to join or merge tables column
wise using Word VBA. To be more clear I can explain with an example. I have
three tables say table 1 with one column and two rows, table 2 with one
column and four rows, and table3 with one column and four rows. I want the
consolidated (after merging or joining) table to have two columns and two
rows like below.
---------------------------------|------------------------table2
<start>---------------------

|--------------------------------------------------------------
table1 1st row
|--------------------------------------------------------------

|--------------------------------------------------------------
---------------------------------|--------table2 <end>---------------table3
<start>-------

|--------------------------------------------------------------
table1 2nd row
|--------------------------------------------------------------

|--------------------------------------------------------------
---------------------------------|-------------------------table3
<end>---------------------
(first column will have two rows from table1, second column will have table
2 adjacent to the first row of the first column, and table 3 adjacent to the
second row of the first column)
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?Y2hhZWtyaQ==?=,

I think your only option is to create a new table with the requisite numbers of
rows and columns, then read the values from the source tables into the new
table. And then delete the source tables.
I am using Word 2003 on Windows XP SP2. I want to join or merge tables column
wise using Word VBA. To be more clear I can explain with an example. I have
three tables say table 1 with one column and two rows, table 2 with one
column and four rows, and table3 with one column and four rows. I want the
consolidated (after merging or joining) table to have two columns and two
rows like below.
---------------------------------|------------------------table2
<start>---------------------

|--------------------------------------------------------------
table1 1st row
|--------------------------------------------------------------

|--------------------------------------------------------------
---------------------------------|--------table2 <end>---------------table3
<start>-------

|--------------------------------------------------------------
table1 2nd row
|--------------------------------------------------------------

|--------------------------------------------------------------
---------------------------------|-------------------------table3
<end>---------------------
(first column will have two rows from table1, second column will have table
2 adjacent to the first row of the first column, and table 3 adjacent to the
second row of the first column)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
Top