Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Highlighting Duplicate Words.

Highlighting Duplicate Words

Written by Allen Wyatt (last updated August 7, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


1

Joe is an author and he has some ideas for using Word macros to help with his proofreading. One of the macros he wants to build is for finding duplicate words in sentences and paragraphs. He wants to exclude the common necessary words like "the," "a," etc. Joe would like to highlight the duplicate words in a document so he can examine their use and make appropriate changes.

How you go about this depends, really, on how you want to approach the task. For instance, if you want to simply look for duplicate words that are side-by-side, then Word should do that already for you; the grammar checker takes care of marking those duplicate words.

If you, instead, want to find excessive instances of a particular word, then you can use Find and Replace to highlight them. On the Find tab of the Find and Replace dialog box you can enter the word you want to highlight, click the Highlight All Items check box, and then click Find All. Word selects all instances of the Word and you can then use the Highlighter tool to highlight all of them.

Finally, if you want a macro that will step through each paragraph of the document (or each sentence of a document) and look for multiple instances of any given word, then that is a much more complex issue. Stepping through either paragraphs or sentences is not a huge problem; just use either the Paragraphs collection or the Sentences collection in the macro. The bigger problem is dealing with text variations. For instance, does the word "dog" match the word "dogs" or, even, the word "dogged." Without a firm understanding of what, exactly, you want to consider as "matching," your macro can get rather cumbersome.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (6957) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Highlighting Duplicate Words.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Conditionally Formatting Non-Integers

The conditional formatting capabilities of Excel are very helpful when you want to call attention to different values ...

Discover More

Determining If a Year is a Leap Year

Need to figure out if a given year is a leap year? It's not as easy as you think! This tip provides a plethora of ways ...

Discover More

Checking for Duplicate Rows Based on a Range of Columns

When working with data in Excel, you might want to figure out which rows of data represent duplicates of other rows. If ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (menu)

Using Manual Line Breaks with Justified Paragraphs

If you use justified paragraphs, you know that if you press Shift+Enter, it can lead to some odd spacing between words ...

Discover More

Using Extend Mode

One of the most overlooked shortcut keys in Word has to be the extend key. Yet, learning how to use this simple key can ...

Discover More

Inserting a Bullet

Need to place a bullet in the middle of a sentence? There are a couple of easy ways you can do this, as described in this ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is four minus 0?

2015-12-02 12:12:36

Julia

Very interesting page, I was wondering if anyone has a macro to look for duplication of exact words at sentence and/or paragraph level. If yes I would be interested in using it.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.