Change one cell of a table

D

Durin

Hello all, i need change one cell of a table. The width of this, but i have
a table with different number of colums for rows. Me explain, in the first
row i have 1 column, in the second row i have 3 columns, and i need chage the
width of the third cell that the second row.
Thanks all.
 
D

Doug Robbins - Word MVP

How do you want to change the width of the third cell? By reducing the
width of the second cell?

To do that, select the row and then hold down the Shift key while you drag
the table column marker on the ruler. For more precise adjustment, you can
hold down the Alt key as well, but it is holding down the shift key that
allows you to alter the width of the two cells without changing the total
width of that row.

--
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, originally posted via msnews.microsoft.com
 
D

Durin

I said de third cell for example, i need de code that have this. Because
this code have one error for me:
.ActiveDocument.Tables(1).Columns(3).Width = InchesToPoints(2)
If i put this code vba said me you have one error, the table not have the
same width of cells.
Sorry my english is soo bad, and i can´t explain me. Thanks for the quickly
request.
 
M

macropod

Hi Durin,

Try:
ActiveDocument.Tables(1).Rows(2).Cells(3).Width = InchesToPoints(2)
 
D

Durin

Thanks macropod and Doug Robbins

macropod said:
Hi Durin,

Try:
ActiveDocument.Tables(1).Rows(2).Cells(3).Width = InchesToPoints(2)

--
Cheers
macropod
[Microsoft MVP - Word]


Durin said:
I said de third cell for example, i need de code that have this. Because
this code have one error for me:
.ActiveDocument.Tables(1).Columns(3).Width = InchesToPoints(2)
If i put this code vba said me you have one error, the table not have the
same width of cells.
Sorry my english is soo bad, and i can´t explain me. Thanks for the quickly
request.

.
 

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