Word: Select All Non-Heading Paragraphs?
- Total paragraphs
- 10
- You entered
- Heading paragraphs
- 2
- You entered
To select all non-heading paragraphs in Microsoft Word, you cannot do it with a single built-in command, but you can use the Find and Replace feature with a wildcard search to select all paragraphs that are not styled as headings. This article explains the exact steps, the logic behind the method, and several practical alternatives for different versions of Word.
Formula
The number of non-heading paragraphs is simply the total number of paragraphs minus the number of heading paragraphs:
Non-heading paragraphs = Total paragraphs − Heading paragraphs
Where:
- Total paragraphs – every paragraph in the document, including headings, body text, and empty paragraphs (each press of Enter creates a paragraph).
- Heading paragraphs – paragraphs formatted with any of Word’s built-in Heading 1 through Heading 9 styles.
Worked Example
Suppose your document has 10 paragraphs total, and 2 of them are styled as Heading 1 or Heading 2. Using the formula:
Non-heading paragraphs = 10 − 2 = 8
So, 8 paragraphs are non-heading paragraphs. The calculator above confirms this result.
Why There’s No One-Click “Select Non-Heading� Command
Word’s selection tools are designed around formatting, not style categories. The “Select All� button (Ctrl+A) selects everything, including headings, text boxes, and even headers/footers. There is no native command that says “select all paragraphs except those using Heading styles.� That’s because Word treats styles as formatting attributes, and while you can select all text with a specific style, you cannot easily select the complement (all text without that style). This is a common frustration for editors and writers who want to apply a change only to body text.
How to Select Non-Heading Paragraphs Using Find and Replace (Wildcards)
The most reliable method uses Word’s Advanced Find and Replace with wildcards. The trick is to find all paragraphs that are not formatted with a heading style. Here’s how:
- Press Ctrl+H to open Find and Replace.
- Click the More >> button to expand the dialog.
- Enable the Use wildcards checkbox.
- In the Find what box, type:
[!^13]{1,}– this matches any sequence of characters that does not include a paragraph mark (^13). - In the Replace with box, type the same text you want to keep (e.g.,
^&to keep the original text). - Click Find In and choose Main Document. This will select all non-heading paragraphs.
But wait – this selects all paragraphs, including headings. To exclude headings, you need to add a style condition. Unfortunately, Word’s wildcard search does not directly support “not this style.� However, you can use a two-step approach:
- First, temporarily apply a unique character style to all headings (e.g., select all headings using Find and Replace with style, then apply a temporary style).
- Then, use the wildcard search to select all paragraphs except those with that temporary style.
This is clunky but works. A simpler alternative is to use the Navigation Pane (View > Navigation Pane) to see headings, but that doesn’t select them.
Using VBA to Select Non-Heading Paragraphs
For users comfortable with macros, a VBA script can do the job in one click. Here’s a simple macro that selects all paragraphs that are not styled as Heading 1 through Heading 9:
Sub SelectNonHeadings()
Dim p As Paragraph
Dim rng As Range
Set rng = ActiveDocument.Content
rng.SetRange 0, 0
For Each p In ActiveDocument.Paragraphs
If Not Left(p.Style.NameLocal, 7) = "Heading" Then
rng.End = p.Range.End
End If
Next p
rng.Select
End Sub
To use this, press Alt+F11 to open the VBA editor, insert a new module, paste the code, and run it. This selects all non-heading paragraphs, but note that it also includes empty paragraphs. You can refine it to skip empty paragraphs if needed.
Alternatives: Using Styles and Find and Replace
If you don’t want to use VBA, you can use a clever workaround with styles:
- Select all headings (Ctrl+A, then use the Style Inspector to select all text with Heading styles – but that’s not direct). Actually, you can use Find and Replace to find all paragraphs with a specific heading style, then apply a unique character style to them.
- Then, use Find and Replace to find all paragraphs that do not have that character style. This is possible because you can search for a style and also use the “Not� operator in the Find dialog – but only for character styles, not paragraph styles.
Here’s a step-by-step:
- Press Ctrl+H, click More, and place the cursor in “Find what�.
- Click Format > Style, choose “Heading 1�, then “Heading 2�, etc. (You can search for each heading style one by one.)
- Click “Find In� > “Main Document� to select all headings.
- With headings selected, apply a temporary character style (e.g., “Emphasis�) to them.
- Now, open Find and Replace again, click More, and in “Find what�, type
*(any characters). - Click Format > Style, choose the temporary character style, and then click “Not� (this option appears when you select a style).
- Click “Find In� > “Main Document� – this selects all text that does not have that character style, i.e., your non-heading paragraphs.
This method works but requires several steps and may be confusing. For most users, the VBA macro is the most efficient.
Common Mistakes and Limitations
When trying to select non-heading paragraphs, users often run into these issues:
- Empty paragraphs – A paragraph that contains only a paragraph mark is still a paragraph. If you want to exclude empty paragraphs, you need to adjust your search or macro.
- Text boxes and other containers – The methods above only work on the main document body. Text boxes, headers, footers, and footnotes are separate stories. To select non-heading paragraphs in those, you must repeat the process in each container.
- Heading styles with “Heading� in the name – The VBA code checks if the style name starts with “Heading�. If you have custom styles like “Heading 1 Alt�, it still matches. But if you have a style named “Subheading� that is not a built-in heading style, it will not be excluded.
- Linked styles – Some styles are linked (they can be used as both paragraph and character styles). The Find and Replace method may behave unexpectedly if the style is linked.
Frequently Asked Questions
Can I use Ctrl+Click to select multiple non-heading paragraphs?
Yes, you can manually select multiple non-heading paragraphs by holding Ctrl and clicking each one, but this is impractical for more than a few paragraphs. The methods above are for bulk selection.
Does the wildcard search select the entire paragraph including the paragraph mark?
No, the wildcard search [!^13]{1,} matches any sequence of characters that does not include a paragraph mark. It stops before the paragraph mark, so the selection does not include the paragraph mark itself. If you want to include the paragraph mark, you would need to adjust the search pattern.
Why doesn’t “Select All� with a style work for excluding headings?
Word’s “Select All� with a style selects all text with that style. To select all text without a style, you need to use the “Not� operator in the Find dialog, which is only available for character styles, not paragraph styles. That’s why the workaround involves a temporary character style.
Can I use the Navigation Pane to select non-heading paragraphs?
No, the Navigation Pane only shows headings. It does not provide a way to select non-heading paragraphs. It can help you identify which paragraphs are headings, but not to select the rest.
Is there a way to select non-heading paragraphs in Word Online?
Word Online has limited features. It does not support VBA macros or advanced Find and Replace with wildcards. You would need to use the desktop version of Word to use these methods.
How do I count non-heading paragraphs?
To count non-heading paragraphs, you can use the same selection methods and then look at the status bar (which shows the number of words and paragraphs). Alternatively, use the VBA macro to count them, or use the calculator at the top of this page with the total paragraph count and heading count.
Related
Formula used
in t | Total paragraphs | - | 10 | 1 in h | Heading paragraphs | - | 2 | 0 out non | Non-heading paragraphs | - | t - h | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.