View Single Post
 
Old 09-17-2023, 07:39 AM
eduzs eduzs is offline Windows 10 Office 2019
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default 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.
Reply With Quote