![]() |
#1
|
|||
|
|||
![]()
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. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Applying a VBA code only on a selected text or range | RobertDany | Word VBA | 2 | 10-09-2021 08:31 AM |
![]() |
mrplastic | Word VBA | 4 | 12-20-2019 01:25 PM |
![]() |
Marcway | Word | 6 | 12-14-2018 04:25 PM |
Distribute text in one cell across a range of cells (overcoming selection.range.cells.count bug) | slaycock | Word VBA | 0 | 02-18-2017 07:00 AM |
![]() |
Chayes | Word VBA | 7 | 11-03-2013 03:43 PM |