Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Detecting the end of a row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bear - 11 Oct 2007 23:59 GMT
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
Signature

Windows XP, Word 2000

Helmut Weber - 12 Oct 2007 09:01 GMT
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

Signature

Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000 (german versions)


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.