VB Macro to import Word content into an Excel Spreadsheet

rafikarp

New Member
Joined
Dec 23, 2008
Messages
21
Hi,

I am wondering if it is possible to program a VB macro that would open up a folder in a directory and open a Word file in that folder, copy the text and paste it back into an excel file, then close the Word document and open the next Word document, copy the text and paste the text in the next row etc.

Basically, I have a few hundred Word files that need to be copied and appended into an Excel spreadsheet.

The text in the word files is all in the same format (in a table).

If you have a good example of something like this it would be much appreciated. I can probably tweak the macro as required.

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I suggest following
open an excel sheet.
create a macro
follow the steps you want for a 2 or 3 files and then see the macro .
the macro will give you idea how to edit the macro to extend it for 100 files.
 
Upvote 0

Forum statistics

Threads
1,216,763
Messages
6,132,583
Members
449,737
Latest member
naes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top