problem with wordwrap property

A

anita

I add a table in my documents but I want to avoid of wordwrapping in my
table
so I set ACell.WordWrap = false for all my cells but it doesnot still
working;


ATabel := ADoc.tables.Add(ARange, 2, 4, .....);
ATable.Rows.Item(1).Cells.Item(1) := 'very long text............';
ATable.Rows.Item(1).Cells.Item(1).WordWrap := False;
 
D

Doug Robbins - Word MVP

From my testing, it appears that you have to set the .FitText attribute as
well:

With ActiveDocument.Tables(1).Cell(1, 1)
.WordWrap = False
.FitText = True
.Range.Text = "this should be too long to fit in the cell."
End With

What it does however is compress the text so that it fits on one line in the
cell which may make it unreadable.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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

Top