Data Copied To Word - Move Cursor Down One Line

Chubski

New Member
Joined
Apr 25, 2011
Messages
11
Hello,

I've got a macro that copies multiple data to word which works fine but once the data is pasted each time I want to have the word document (controlled by Excel) to move down one line so that when the next item of data is pasted there is a one line space.

So far the only other option is to have it copy over an extra line from Excel but there must be a better way to achieve this as not all the items that are copied and pasted will want a space after them.

Any ideas gratefully received.

Regards

C
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You can work out the code to add into your Excel Sub routine by recording a Macro in Word to do the paste and then press enter. You would see that it says you are adding TypeParagraph. So by recording and pressing enter on a Word document to get the extra line it would show you.

Selection.TypeParagraph
Selection.TypeParagraph
 
Upvote 0
Trevor,

Many thanks for the help.

That works for me and also helped me with moving on my project for something else.

Regards

C
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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