V
Victor Boris Arnold
I'm trying to code some logic to determine whether the
line above the current selection is a table row. I've been
able to do so using the GoToPrevious method with the
wdLine option for the selection, then using the
wdWithInTable option of the Information property, but I'd
like to be able to use a range instead so I don't have to
move the selection. When I try the GoToPrevious with the
Selection.Range, however, it doesn't work. It must not
recognize the new range.
Also, I'd be interested to know if anyone has a better way
to do determine whether the preceding line is in a table.
line above the current selection is a table row. I've been
able to do so using the GoToPrevious method with the
wdLine option for the selection, then using the
wdWithInTable option of the Information property, but I'd
like to be able to use a range instead so I don't have to
move the selection. When I try the GoToPrevious with the
Selection.Range, however, it doesn't work. It must not
recognize the new range.
Also, I'd be interested to know if anyone has a better way
to do determine whether the preceding line is in a table.