What line in document

J

Jay Freedman

M@rit said:
How can I get what line in document the cursor stands in?

M@rit

You can try
Selection.Information(wdFirstCharacterLineNumber)
but this shows only the count starting from the top of the current
page (it shows the same number as the "Ln" item on the status bar).

There isn't any built-in way to get a continuous count from the start
of the document; you would have to move the cursor to the bottom of
each page in turn and get the line number there, keeping a running
total, until you reached the right place.
 

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