Help Please

  • Thread starter Thread starter Please Help
  • Start date Start date
P

Please Help

Attached below is part of the code when you click a
command button. This puts the values of the cells into a
word document. My question is I want these values on
different lines but by default it places them all on the
same line. I hope this makes sense.. Can some one help?
Thanks in advance.

Dim mywdRange As Word.Range
Set mywdRange = myDoc.Words(1)
With mywdRange
.Text = Range("G6") & _
Range("G7") & _
Range("G8")
End With
 
By placing the '&' between each range, you are telling the
routine to put each range together on the same line.

You will probably need to specify each range to be pasted
separately, ie

..text1=Range("G6")
..text2=range("G7")
..text3=range("G8")

Hope this helps

DavidC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top