VBA Mail merge word with data from excel.

joepublic

New Member
Joined
Nov 23, 2005
Messages
24
Hello
I am newbie with this VBA.
I am trying to merge my excel data into word all with VBA.
My word and excel version is 2000 9.0.2812
Please would you help me? I really apreciate any help !!.

I will explain in detail my needs.
I have a big excel table with data.
When I open this excel file and I select any cell from row 2, or row 3, or row 4 and press the macro "Ctrl+5" it should merge all the data from this row into a specific template of word which name and location is in column C, and this word document would be displayed on the screen to modify or print it.
I just need to display my report in word with the excel data FOR just ONE SINGLE ROW. That's all.


IN THE Excell file I have this table:
Column A B C
Row2 Jose Martinez C:\test1.doc
Row3 Paula Perez C:\test2.doc
Row4 Celia Rodriguez C:\test3.doc

So if I have selected any column of row 2 the data to be merged is just the data in row 2 into my template test2.doc.
If I have selected any column of row 3, the data to be merger is just the data in row 3 and so on.....

I also need to know what kind of libraries must be activated from Visual basic panel.

Please, would anyone help me ?
Thanks a lot.
JOEY.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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