Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Merge tables column wise
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) |
#2
|
|||
|
|||
Hi ?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 :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Column merge question | Tables | |||
Merge fields in word tables populate by a VBA query | Tables | |||
Dragging table column resets | Tables | |||
merge column | Page Layout | |||
How do you merge two Access databases into one set of tables | Microsoft Word Help |