Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Searching for Adjectives and Adverbs.

Searching for Adjectives and Adverbs

Written by Allen Wyatt (last updated May 27, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


The English language is made up of many different types of words. There are nouns, verbs, adjectives, adverbs, and so on, each filling a specific purpose in the grammar of a sentence. (Some say that English is a hard language to learn. I always answer that it didn't seem too hard to me—in fact, I learned it as a child. :>))

In analyzing a document, you may want to find out how many of a particular type of word is used within a sentence. For instance, you might want to determine how many adjectives and adverbs there are in your document. Unfortunately, Word does not provide a built-in means to locate such words.

Adjectives, of course, are words that modify or describe nouns. For instance, in "the tall tree," the word "tall" (an adjective) describes the word "tree" (a noun). Many, many words can function as adjectives, and whether a particular word is an adjective in a particular sentence depends on the context in which that word is used. Because of this, it is virtually impossible to come up with a macro that will determine if a word is an adjective and then somehow highlight it.

Adverbs are a different story. Most adverbs end in the letters "ly," and most words that end in "ly" are adverbs. This rule, although not 100% accurate, at least gives you some sort of guideline around which you can build a macro. Consider the following macro:

Sub FindAdverbs()
    Dim r As Range

    For Each r In ActiveDocument.Words
        If Right(Trim(r.Text), 2) = "ly" Then
            r.Italic = Not r.Italic
            r.Bold = Not r.Bold
        End If
    Next r
End Sub

This macro searches the entire document for any word that ends in ly. If it finds one, the word is made bold and italics. This makes it easy to spot probable adverbs within a document. If you run the macro a second time, those same words are converted back to regular text.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11486) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Searching for Adjectives and Adverbs.

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

Misbehaving Rulers

When upgrading from Word 2000 to 2002, many people have a problem with the Ruler function. This tip explains how to fix ...

Discover More

Adding Many No-Width Optional Breaks

One of the special characters you can add in a document is the no-width optional break. Although originally designed for ...

Discover More

Creating a Table of Contents from Heading Levels

If your document is any length at all, adding a table of contents is a nice touch. This tip demonstrates how easy it is ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Finding Punctuation-Free Paragraphs

Punctuation is a vital part of the syntax of grammar. If you have paragraphs of text that contain no punctuation, ...

Discover More

Special Differences when Searching

Word includes two different search engines. Which search engine you choose to use will dictate what Word shows as ...

Discover More

Replacing an X with a Check Mark

In order to provide a finishing touch to your document, you may want to replace mundane X marks with fancier check marks. ...

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 nine minus 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu 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.