K
Ken
I want to find the horizontal position of a selected table.
The code: Selection.Tables(1).Rows.HorizontalPosition
gives the correct position in points provided that the table's
position has not been set with wdTableRight, wdTableCenter or
wdTableLeft.
I can handle wdTableLeft by:
if Selection.Tables(1).Rows.HorizontalPosition = wdTableLeft then
tPosition=0
but to use this technique with the other settings I would need to
determine the width of the table - difficult if there are merged
cells.
Is there a way to get the position in points when the position has
been set with wdTableRight or wdTableCenter ?
The code: Selection.Tables(1).Rows.HorizontalPosition
gives the correct position in points provided that the table's
position has not been set with wdTableRight, wdTableCenter or
wdTableLeft.
I can handle wdTableLeft by:
if Selection.Tables(1).Rows.HorizontalPosition = wdTableLeft then
tPosition=0
but to use this technique with the other settings I would need to
determine the width of the table - difficult if there are merged
cells.
Is there a way to get the position in points when the position has
been set with wdTableRight or wdTableCenter ?