
Signature
Greetings from Moscow, Russia
Hi Staroslav,
the question is, what width sould the cell have?
This one adjusts all cells to the first cell in a column,
hoping, the first cell has the right width.
Other ways of coding might be preferable,
if higher performance is necessary.
---
Dim c As Long ' column
Dim r As Long ' row
Dim w As Single ' width
With ActiveDocument.Tables(1)
For c = 1 To .Columns.Count
w = .Cell(r, 1).Width
For r = 2 To .Rows.Count
.Cell(r, c).Width = w
Next
Next
End With
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
Staroslav - 26 Apr 2005 14:44 GMT
Thank you Helmut, this doesn't quite do it, but it gave me an idea that
should work. I need to write a macro that identifies the problem cell
(current selection), and sets its width as the cell right above it, which
should be the good cell. I guess cell index should be used to avoid mix up.
I'll try working on it.
vs
> Hi Staroslav,
>
[quoted text clipped - 22 lines]
> "red.sys" & chr(64) & "t-online.de"
> Word 2002, Windows 2000