![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]() 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
|
||||
|
||||
![]()
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] |
![]() |
Tags |
macros, ms word 2010, vba |
|
![]() |
||||
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 |
![]() |
Tesla | Excel | 7 | 03-22-2019 06:04 AM |
![]() |
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 |
![]() |
marceepoo | Word VBA | 2 | 12-20-2012 11:42 AM |