VBA in Word to populate word document from excel data file.

ThisisElvis

New Member
Joined
Jul 19, 2019
Messages
1
I am looking for a way to extract excel data into a word document, from the VBA in the word document. There is one cell in the excel file that is either empty or contains data that needs to be split so for example:

Excel Data

Cell1 Cell2 Cell3 Cell4
Yes Yes No Yes|No|Maybe|Not Required

In Word doc after import

Cell1 value is: Yes
Cell2 value is: Yes
Cell3 value is: No

Cell4 Part1 is: Yes
Cell4 Part2 is: No
Cell4 Part3 is: Maybe
Cell4 Part4 is: Not required

Then repeat for all other rows in the excel data file.

I don't think this can be achieved using mail merge because of the data in cell4

Appreciate any suggestions on how this can be done.

Thanks in advance
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,520
Messages
6,120,008
Members
448,935
Latest member
ijat

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