Macro to copypaste data from Excel to Word

Trilliput

New Member
Joined
May 8, 2013
Messages
1
Hi,

If anyone could help me with the following, I'd be very grateful:

There is a sheet with data which I'd like to copypaste into a Word file. Specifically, I want to insert the values from one row into one text box. In the Word document, there should be up to 8 text boxes per page, the text boxes being of a specific format.

I have found this solution for switching between Excel and Word, but I have no idea how to tell Word to "put it into this box and make the next one".


Sub Macro1()
Dim oWrd As Object
Set oWrd = CreateObject("Word.Application")
oWrd.Visible = True
oWrd.documents.Add
oWrd.Application.Run MacroName:="Macro1"
oWrd.ActiveDocument.SaveAs Filename:="Hi ther1.doc"
oWrd.Application.Quit
MsgBox "now back to Excel"
End Sub

Any assistance is much appreciated!

Thanks,

T.
 
Last edited:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,214,545
Messages
6,120,128
Members
448,947
Latest member
test111

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