Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. 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 Text Not Using a Certain Style.

Searching for Text Not Using a Certain Style

by Allen Wyatt
(last updated September 18, 2018)

3

Hilary notes that she can easily use Word to search for text that is formatted using a certain style or a certain text attribute. For instance, she can search for text that uses the Body Text style or text that is bold. She can even search for text that doesn't have a certain attribute, such as text that is not bold. However, Hilary can't figure out how to search for text that doesn't use a certain style. She wonders if there is a way to search, for example, all the text that doesn't use the Body Text style.

There is no direct way to do this in Word. There are indirect methods you can use, however. Perhaps the easiest is to see if the Body Text paragraphs share some similarity that can be capitalized. For instance, each of them may have some text phrase in common or they might share a common formatting attribute. This last commonality is the most promising.

If, for instance, your Body Text style is defined to have a paragraph indent that is different from the rest of your document, then you can use that indent in your search. Let's say that your Body Text paragraphs are all indented at .2 inches. You could search for all paragraphs that have no indent (an indent of 0 inches). This finds all the paragraphs that don't match the Body Text specification. The only way you would run into problems, of course, is if you had other styles (besides Body Text) that had some sort of an indent.

This leads to another possible solution. Follow these general steps:

  1. Use Find and Replace to Find the all instances of the Body Text style. In the Replace With box, click the Format button and click Highlight.
  2. Click Replace All. You end up with all instances of the Body Text style being highlighted.
  3. Clear the formatting in the Find and Replace dialog box. In the Find What box click Format | Highlight twice. This will show up in the dialog box (under the Find What box) as Not Highlight.
  4. Click Find. Word finds the first occurrence of a paragraph that isn't formatted using the Body Text style. You can find additional occurrences, as desired.

That's it; you've found what you wanted found. When you are done you can use technique in the first two steps to get rid of the highlighting.

Of course, you could replace the first two steps with just modifying the Body Text style so that it includes the highlighting. When you are done, just get rid of that attribute in the style definition.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (8793) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Searching for Text Not Using a Certain Style.

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

Turning Off Automatic Numbered Lists

Type what Word thinks is a numbered list, and it will helpfully format the text to match what it thinks your numbered ...

Discover More

Converting Lists to Text

If you have a numbered list in a document, you might want to convert it to regular, non-dynamic text and not lose the ...

Discover More

Converting Footnotes to Endnotes

When you spend a lot of time creating footnotes, how can you convert all of them to endnotes without entering them all ...

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 (ribbon)

Stopping Styles from Changing with Multiple Users

Using styles in your documents can be very helpful when it comes to consistency and ease of formatting. When others open ...

Discover More

Checking Bilingual Documents

Do you routinely work with multiple languages in your documents? If so, you may appreciate the suggestions in this tip, ...

Discover More

Changing Styles

Styles are a great boon to making your documents look better and making them easier to update. You can change the ...

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}] 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 3 + 4?

2018-09-21 18:07:24

William J. Wolfe

If you want to find the next instance of text NOT formatted with a paragraph-based style, this macro repetitively searches for the next paragraph mark, (^13) and if that mark (selection) is NOT formatted with the specified style ("Body Text" style here), it stops and selects the paragraph:

Sub FindNotStyle()

Dim bFound As Boolean
Dim sStyleName As String

bFound = False
sStyleName = "Body Text"

Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^13"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = True
.MatchSoundsLike = False
.MatchAllWordForms = False
End With

While bFound = False
Selection.Find.Execute
If Selection.Paragraphs(1).Style <> sStyleName Then
bFound = True
End If
Wend
Selection.Paragraphs(1).Range.Select
End Sub


2016-08-22 10:38:22

Johannes van der Zwan

Hello
I would like to search for a specific text in a word document like:
- "Genesis 3:16"
- "Marcus 2:1,5-6;4:2"
- etc..

I am using Word 2016.
Please can you tell me the best way to do that.

Thank you very much.


2016-05-20 11:34:26

Chris

This was hugely helpful - I need to set all text in multiple docs that is NOT formatted as Body to Body, and this makes it trivial to find that text.

Thank you very much!


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.

Newest Tips
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.