A family of Microsoft word processing software products for creating web, email, and print documents.
Further polishing the cannon ball forged by Doug:
Dim i As Long, j As Long
Dim strData As String, strHeight As String
With Selection.Tables(1)
If Selection.Tables(1).Uniform Then
strData = "The selected table is uniform and contains " & .Rows.Count & " rows and " & .Columns.Count & " columns." & vbCr
For i = 1 To .Rows.Count
For j = 1 To .Columns.Count
If .Cell(i, j).Height = "9999999" Then
strHeight = "undefined"
Else
strHeight = "at least " & .Cell(i, j).Height & " high"
End If
strData = strData & "The dimensions of cell " & j & " in row " & i & " are " & strHeight & " x " & .Cell(i, j).Width & " wide" & vbCr
Next j
Next i
Else
strData = "The selected table is not uniform and contains " & .Rows.Count & " rows and " & .Columns.Count & " columns." & vbCr
For i = 1 To .Rows.Count
For j = 1 To .Columns.Count
On Error Resume Next
If .Cell(i, j).Height = "9999999" Then
strHeight = "undefined"
Else
strHeight = "at least " & .Cell(i, j).Height & " high"
End If
strData = strData & "The dimensions of cell " & j & " in row " & i & " are " & strHeight & " x " & .Cell(i, j).Width & " wide" & vbCr
On Error GoTo 0
Next j
Next i
End If
End With
Debug.Print strData