Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-23-2022, 10:10 PM
Karthik221 Karthik221 is offline How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. Windows 10 How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. Office 2010
Novice
How to check if a paragraph is having minimum 5 sentence ? If not merge with next para.
 
Join Date: Apr 2022
Posts: 1
Karthik221 is on a distinguished road
Question How to check if a paragraph is having minimum 5 sentence ? If not merge with next para.


I would like to check whether each of my paragraph in my document contains atleast minimum of 5 sentence. If it does not have 5 sentence, I would like to have a macro to merge it with following paragraph.

Also I would like to check each paragraph should not exceed 15 sentence on it.

To explain in para notion, the document should be like this when para marks are on !

abc apple^p
efg ball^p
hij cat^p
lmn dog^p
opq elephant^p --> here 1st para got ended with 5 sentence on it
^p
rst fox^p --> second para got begins with one empty para in between
uvw girrafe^p
xyz horse^p
abc igloo^p
def jaguar^p --> here 2nd para got ended
^p
  #2  
Old 04-24-2022, 05:27 PM
macropod's Avatar
macropod macropod is offline How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. Windows 10 How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,344
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Cross-posted at: vba - Check a paragraph contains at least 5 sentences - Stack Overflow
For cross-posting etiquette, please read: Excelguru Help Site - A message to forum cross posters
Since you have already been given comprehensive advice on the other forum, I am closing this thread.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Closed Thread

Tags
macros, ms word 2010, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Let bookmark check if there are empty bookmarks before and place sentence there? RevoMedia Word VBA 7 01-21-2020 08:04 AM
How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. extract the first sentence from a paragraph using Kutools Tesla Excel 7 03-22-2019 06:04 AM
How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. Word 2016 - Where's Sentence length check RightPaddock Word 1 08-22-2017 02:30 PM
How to paste as a single para from clipboard having multiple paragraph PRA007 Word VBA 8 12-04-2015 04:48 AM
How to check if a paragraph is having minimum 5 sentence ? If not merge with next para. Get para no where txt is found, and move text to end of paragraph using Word 201 marceepoo Word VBA 2 12-20-2012 11:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft