Hello,
I would greatly appreciate if someone is able to help me with my challenge to automate a lot of manual effort.
I have a large quantity of Word 2010 documents where I want to extract the table information from each document and put it into Excel. Instead of manually doing this, I'm hoping there is a way to automate this using VBA in Excel.
Each word document contains 1 table, with the same layout: 2 columns, 20 rows. The first column is the same in every document, the 2nd column contains the data I want.
I'm looking to run a macro from Excel that would do the following:
1. Automatically open each Word doc (1 at a time). NOTE: All word documents and the Excel file would reside in the same folder
2. Extract the data from the 2nd column of the word table and paste it into Excel (transpose the column into a row, so I can treat all the data like a file)
3. In the last (or first cell) per row, add the Word doc file name
4. Close the current word document, then open the next one in the folder and repeat above steps
So if I had 200 Word documents, then 200 rows would be imported into Excel.
I have code to do this for Excel documents (merging all the Excel files within a folder into 1 document), but have no idea how to do this for Word.
Thanking you in advance for your assistance.
Bookmarks