offset to page, para, line

D

David Thielen

Hi;

From an offset (Range.Start), how can I get the page, para, & line of
that offset?

thanks - dave
 
J

Jonathan West

David Thielen said:
Hi;

From an offset (Range.Start), how can I get the page, para, & line of
that offset?

For the page number, get the Information(wdActiveEndPageNumber) property of
the Range

For the index number of the paragraph, take a look at this article

Determine the index number of the current paragraph, table, section ...
http://word.mvps.org/FAQs/MacrosVBA/GetIndexNoOfPara.htm

Line's can't really be done - Word doesn't think in terms of lines of text,
as these reflow easily according to the size of the font, the characaters
and the column width.
 

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