Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Line Text in Word table

Status
Not open for further replies.

MajP

Technical User
Aug 27, 2005
9,382
US
How do you add a multi line text into a Word table cell? I am doing something like
...
.Cells(1).Range.Text = "Some text" & vbcrlf & "some other text"
...
Instead of vbcrlf I tried Chr(10) & chr(13).
In both cases the text is written but no multi line.
Thanks.
 
When you create a table in Microsoft Word, it is automatically set to not apply any sort of text wrapping to the table.

Have you turned wordwrap on? If not the table's properties will force it to a single line cell
 

Although it isn't really the 'right' way to do it, it should work and there's something odd if it doesn't. What happens if you add the same text to somewhere else in the body of the document? Do you get multiple lines there?


Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top