Hidden Numbered Items Still Affect Numbering

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


Mabel uses numbering in her documents, both in regular numbered lists and in headings. When she applies the Hidden attribute to a portion of the document that happens to be numbered, the remaining numbered items do not get renumbered. Apparently, Word still takes the hidden numbered items into account even though they are hidden. Mabel needs Word to ignore the hidden items and skip their numbering, so that the visible lists and headings use properly sequential numbering when printed.

The short answer is no, Word cannot do this. The program takes hidden text into account in doing automatic numbering, and there is no way to change that. There are workarounds, however.

Perhaps the easiest workaround for the purpose Mabel describes is to simply delete the hidden items before printing. This may sound drastic, but is quite easy to do. You can use Find and Replace to delete the hidden text, then print the document, and finally close the document without saving. You can even use a macro to accomplish these three tasks:

Sub PrintWithoutHidden()
    Dim rng As Range

    ' Turn off screen updating
    Application.ScreenUpdating = False

    ' Save the document
    ActiveDocument.Save

    ' Remove hidden text
    Selection.HomeKey Unit:=wdStory
    Set rng = ActiveDocument.Content
    With rng.Find
        .ClearFormatting
        .Font.Hidden = True
        .Text = ""
        .Replacement.Text = ""
        .Forward = True
        .Wrap = wdFindStop
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False

        Do While .Execute
            rng.Delete
        Loop
    End With

    ' Print the document
    ActiveDocument.PrintOut

    ' Close the document without saving changes
    ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges

    ' Restore screen updating
    Application.ScreenUpdating = True
End Sub

Besides the three mentioned tasks, the macro saves the document before deleting the hidden text. It then deletes hidden text, prints the document to the current printer, and closes the document without saving.

The second workaround you could use depends on the use of styles. I'm going to assume that you are using a style called MyListItem for your numbered list paragraphs. All you need to do is to create a second style, which I'll call MyListItemHidden, and base it on the MyListItem style. Then, configure the MyListItemHidden style so that it has only two differences from the MyListItem style: (1) it is hidden, and (2) it uses a different numbering format or, alternatively, a bulleted format.

The benefit to this style-based approach is that you can easily switch the format of paragraphs between the MyListItem and MyListItemHidden formats and the numbering in the document is immediately updated.

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 (10470) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365.

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

Removing Duplicate Rows

Too much data in your worksheet? Does too much of that data duplicate other data? Here's how to get rid of the duplicates ...

Discover More

Using the Camera in VBA

The camera tool allows you to capture dynamic "pictures" of portions of a worksheet. If you want to use the camera tool ...

Discover More

Correctly Repeated Words

There are times when you need to repeat a word in a document, but doing so triggers an "error reaction" from Word's ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2019. Spend more time working and less time trying to figure it all out! Check out Word 2019 For Dummies today!

More WordTips (ribbon)

Making All Lines in a Paragraph the Same Height

If the line spacing in a paragraph appears uneven it may result of the combination of a larger character or object pasted ...

Discover More

Mysterious Boxes around Paragraphs

Do you have some mysterious and unwanted boxes showing up around the paragraphs in your document? Here are some ideas on ...

Discover More

Understanding At Least Line Spacing

Line spacing is used to control how close lines are to each other within a paragraph. Word allows you to specify several ...

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 more than 9?

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.