![]() I did an alternative version which ran in just 4 hours and presents a continuous report on the processing status and time to end. I had a very long document to process, the code above would take at least 100 days to finish and blocked everything while working at it. ![]() And then press F5 key to run this code, all the duplicate sentences are highlighted at once, the first displayed duplicate paragraphs are highlighted with green color, and other duplicates are highlighted with yellow color, see screenshot: XRngFind.HighlightColorIndex = wdBrightGreenģ. If xRngFind.HighlightColorIndex wdYellow Then Options.DefaultHighlightColorIndex = wdYellow ![]() VBA code: Find and highlight the duplicate paragraphs in Word document: Sub highlightdup() And then, click Insert > Module, copy and paste below code into the opened blank module: Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. To find and highlight the duplicate paragraphs in a Word document, the following VBA code can do you a favor, please do as this:ġ. How could you find and highlight the duplicate paragraphs quickly and easily in Word document?įind and highlight the duplicate paragraphs in Word document with VBA code Supposing, you have a large Word document which may have hundreds of pages, now, you want to check if there are duplicate paragraphs and then highlight to make them outstanding, so that you can deal with the duplicate sentences. How to find and highlight duplicate paragraphs in Word document?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |