Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-14-2017, 11:32 AM
ffinley ffinley is offline Merging two tables in WORD with VBA Windows 7 32bit Merging two tables in WORD with VBA Office 2010 32bit
Novice
Merging two tables in WORD with VBA
 
Join Date: Dec 2015
Posts: 5
ffinley is on a distinguished road
Default

Thanks -- the tables are not in one document (but I can, of course, copy them into one document if it is easier then to merge them).

There is, unfortunately, no certain character separating the country from the rest of the text (that's why I came up with the 13 characters - but that should not be a problem in VBA to see if the first 13 characters of two cells match...).

Merging and sorting as you suggested does not work, unfortunately, because this would mean that I still have 4 columns... As I said, I would like to have 8 columns afterwards:

"...then I would like to put column 1 of table 1, then column 1 of table 2, then column 2 of table 1, then column 2 of table 2, etc. (until all columns are next to each other, i.e. until column 4 of both tables)"

So it is actually as easy as I said:

- checking if we have a match in column 1 (first 13 characters)
- if yes: putting column by column from each table
- if no: putting column by column but leaving the cells of that table blank which did not have the country...

Can anybody code this?

Thank you.

Best,

Fin
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging different documents in one big document keeping the chapters, figure numbers and tables village Word 8 06-06-2016 04:16 AM
Merging two tables in WORD with VBA Word - Merging from Access kevinegg45 Mail Merge 2 10-30-2012 09:10 AM
Merging two tables in WORD with VBA Avoid merging tables b0x4it Word 4 06-14-2011 10:01 PM
Merging Multiple Word files into One Stattovic Word 0 01-06-2010 07:19 AM
HELP! Merging Excel to Word peevenjo Mail Merge 0 07-06-2007 03:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft