How to extract specific data from Excel and paste it in Word

smarinaj

New Member
Joined
Feb 7, 2011
Messages
5
Hi!

I would like to request your help creating a macro to grab specific data from an Excel document and paste it into a Word document.

This is my dilemma:

I have a long Excel document with two columns, one for the terms in English and one for the translation into Spanish.

I have a Word document for each letter of the alphabet. For instance, one document is A.doc, another is B.doc, etc. Each Word document already contains a populated table with two columns.

I want the macro to look in each row of the Excel document to find a word starting with an "A" in the first column and paste the content of the entire row into the Word document named "A.doc", at the end of the table, without deleting other rows in the existing Word table.

After that, I would like to do the same thing with letter "B", "C", etc.

Any suggestions would be greatly appreciated.

Thanks so much.

Sandra <!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,587
Messages
6,179,741
Members
452,940
Latest member
rootytrip

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