G
George Lee
Has anyone experienced problems with wdVerticalPositionRelativeToTextBoundary?
In my case, the return value is always zero. In the following code, the last
two calls return correct values. The first two are always zero, regardless
where the cursor is.
Dim x As Double
x =
gTargetDoc.Application.Selection.Range.Information(wdVerticalPositionRelativeToTextBoundary)
x =
gTargetDoc.Application.Selection.Range.Information(wdHorizontalPositionRelativeToTextBoundary)
x =
gTargetDoc.Application.Selection.Range.Information(wdHorizontalPositionRelativeToPage)
x =
gTargetDoc.Application.Selection.Range.Information(wdVerticalPositionRelativeToTextBoundary)
In my case, the return value is always zero. In the following code, the last
two calls return correct values. The first two are always zero, regardless
where the cursor is.
Dim x As Double
x =
gTargetDoc.Application.Selection.Range.Information(wdVerticalPositionRelativeToTextBoundary)
x =
gTargetDoc.Application.Selection.Range.Information(wdHorizontalPositionRelativeToTextBoundary)
x =
gTargetDoc.Application.Selection.Range.Information(wdHorizontalPositionRelativeToPage)
x =
gTargetDoc.Application.Selection.Range.Information(wdVerticalPositionRelativeToTextBoundary)