Count lines within selected text range
How to reliable count lines within selected text range with VBA?
oRng.ComputeStatistics(wdStatisticLines) apparently it doesn't work when there is more than one paragraph or the selection comprises more than one page.
I found a solution to count lines of the entire document, but not for selected text.
Thanks
__________________
Backup your original file before doing any modification.
|