Detecting the end of a row

B

Bear

In a mixed selection that begins in a paragraph and ends in the first row of
a table, the range.paragraphs contains the end-of-row marker as a para.

If I select that para range, range.information(wdatendofrowmarker) is false.
If I collapse the range, it's true.

Is there any other way I could detect that the para was the end-of-row
marker without collapsing it or creating a working range to collapse and test?

In other words, is there any way to test that the end of row marker is
selected aside from range.information?

Bear
 
H

Helmut Weber

Hi Bear,

maybe this will help:

The end-of-row mark is in a table, but not in a cell!

You may like to combine the following observation into a function.
Select a row:

Sub TestAAA()
Dim r As Range
Set r = Selection.Range
MsgBox r.Characters.Last.Information(wdWithInTable)
MsgBox r.Characters.Last.Cells.Count
End Sub


HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top