T
Thomas
I am trying to count the number of lines of text in a Word document.
The object is to move from the lines, all in one paragraph, which do not
end with a ^P and add a ^P at the end of each so that the text may be
cut and pasted into another application.
When I try to count the number of line with
ActiveDocument.PageSetup.LinesPage
It always returns the number of lines *possible* on the page, not the
number of lines actually occupied with text.
I want to count the lines and then move down one at a time, add the ^P
until the count is exhausted.
A way to do that would be appreciated as well as how to generically
count lines, for future reference.
Thanks.
Thomas
--
Three stages of truth for scientists:
(1) It's not true.
(2) If it is true, it's not very important.
(3) We knew it all along.
Leo Szilard, (1898-1964, Key figure in the Manhattan Project)
The object is to move from the lines, all in one paragraph, which do not
end with a ^P and add a ^P at the end of each so that the text may be
cut and pasted into another application.
When I try to count the number of line with
ActiveDocument.PageSetup.LinesPage
It always returns the number of lines *possible* on the page, not the
number of lines actually occupied with text.
I want to count the lines and then move down one at a time, add the ^P
until the count is exhausted.
A way to do that would be appreciated as well as how to generically
count lines, for future reference.
Thanks.
Thomas
--
Three stages of truth for scientists:
(1) It's not true.
(2) If it is true, it's not very important.
(3) We knew it all along.
Leo Szilard, (1898-1964, Key figure in the Manhattan Project)