Thread: [Solved] Detecting_paragraph
View Single Post
 
Old 11-27-2022, 01:38 AM
Bikram Bikram is offline Windows 10 Office 2007
Advanced Beginner
 
Join Date: Jul 2021
Location: Nepal
Posts: 90
Bikram is on a distinguished road
Default Detecting_paragraph

Greeting,
I am wondering if paragraphs containing more than 1 line can be detected in word by using something like
Code:
    If Selection.paragraphs(1).range.count <> then
    'If true then formats in one way else formats in another way.
    End If
But unfortunately, line.count method does not seem to exist. How can it be detected? I really appreciate any help you can provide.
Reply With Quote