"Table properties in Word just deal the style and formatting of the
table. "
That is true, but as Doug shows how, if you make a table OBJECT then you have
access to all object properties of that table.
Once you have the object (as with Doug's code), you can:
Put text into a give cell:
MyTable.Cells(3,2).Range.Text = "yadda yadda"
Make a CELL object, and do stuff with thatt:
Dim oCell As Cell
,
other stuff...
' set the cell object to the third cell of the table
' note this is NOT by row/column!
Set oCell = MyTable.Range.Cell(3)
' see the Function CellText2 below
If CellText2(oCell.Range.Text) = "Blah blah" Then
oCell.Range.Text = "whopppeeee!"
End If
And anything else that is exposed to VBA for a table...which is a LOT.
N.B. be careful about getting text out of cells. The cell range includes
the end-of-cell marker. To get only the text use one of these functions.
Function CellText(oCell As Cell)
CellText = Left(oCell.Range.Text, _
Len(oCell.Range.Text) - 2)
End Function
Function CellText2(strIn As String)
CellText2 = Left(strIn, Len(strIn) - 2)
End Function
The first passes the cell itself as the parameter. The second passes the
range.text (including the end-of-cell marker).
Which to use depends on whether it is useful to have cell objects, or not.