It seems that VBA retrieves a false value for the cell height of a nested table cell. The primary table
After selecting a form field, I try to get position and size (x1,y1,x2,y2) with the following code:
ActiveDocument.Fields(xx).Select ' Fields(xx) element is inside a cell of a nested table
x1 = Selection.Information(wdHorizontalPositionRelativeToPage) - (Selection.Cells.Width / 2)
x2 = Selection.Information(wdHorizontalPositionRelativeToPage) + (Selection.Cells.Width / 2)
y1 = Selection.Information(wdVerticalPositionRelativeToPage) + (Selection.Cells.Height / 2) + (Selection.font.SIZE / 2)
y2 = Selection.Information(wdVerticalPositionRelativeToPage) - (Selection.Cells.Height / 2) + (Selection.font.SIZE / 2)
With a regular table Selection.Cells.Height returns the correct value. With a nested table Selection.Cells.Height returns 9999999 instead of the real value.
Is there a workaround to determine the cell height?