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:

Some videos you may like

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Watch MrExcel Video

Forum statistics

Threads
1,123,472
Messages
5,601,854
Members
414,479
Latest member
Beau the dog

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
Top