I'm trying to get the number of lines in a section. I'd rather not loop through the lines if at all possible. So I tried using the following Code snippet:
Set MySection = ActiveDocument.Sections(s)
Debug.Print "Section"; s; " starts in line"; Selection.Information(wdFirstCharacterLineNumber)
I'm passing in a section number (s) to this procedure. Unfortunately the method returns only the line number within the section of the first character in the selection. Since I'm selecting the whole range, this will always be 1. (I suppose it could have been 0, but ....nah, don't go there ;-)
Has anybody else solved this problem?