View Single Post
 
Old 08-08-2021, 09:23 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Lines is not the answer I wanted to hear. The concept of lines is particularly problematic as Word has no fixed way of handling it.
For instance, how many lines in a table containing multiple columns? How many lines in a graphic? Do we count empty paragraphs, hard page breaks, section breaks etc.?

One feature you might want to consider is turning on Layout > Line Numbers. This will show you that tables are excluded from the numbering.
On any given page this should return the line number on the page - unfortunately it returns odd results when tables appear before it. It seems to include some but not all cells.
Selection.Range.Information(wdFirstCharacterLineNu mber)

As far as I can tell, you would then need to iterate through all preceding pages to work out how many lines on each page and add them all together.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote