Unlinking All Headers and Footers

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


1

Dennis has a book in a single Word document. Each of the 23 chapters are in separate sections. Dennis wonders if there is a way he can create different headers or footers for each chapter without the necessity of manually unlinking every section.

When you add a new section, Word automatically links the headers and footers of the new section to the previous section. If you have a large document, such as what Dennis has, that means unlinking 22 headers and 22 footers. If you have different headers and footers on even pages, then that's 44 more links that need to be broken (22 headers and 22 footers). If you create a different header and footer for the first page of each section, that's another 44 links that need to be changed. (Dennis said he has 23 chapters, which is 23 sections, but no unlinking is necessary for the first section. That's why links for only 22 sections need to be broken.)

To break all the links, it is a potential grand total of 132 links that need to be undone. As a manual task, that's formidable. It is much better to use a macro to unlink them all. The following macro steps through each section of the document and unlinks the header, footer, even page header, even page footer, first page header, and first page footer.

Sub UnlinkAllHeadersFooters()
    Dim s As Section

    For Each sec In ActiveDocument.Sections
        s.Headers(wdHeaderFooterPrimary).LinkToPrevious = False
        s.Footers(wdHeaderFooterPrimary).LinkToPrevious = False
        s.Headers(wdHeaderFooterEvenPages).LinkToPrevious = False
        s.Footers(wdHeaderFooterEvenPages).LinkToPrevious = False
        s.Headers(wdHeaderFooterFirstPage).LinkToPrevious = False
        s.Footers(wdHeaderFooterFirstPage).LinkToPrevious = False
    Next
End Sub

To use the macro, just open the document you want to affect and then run it. You'll then need to manually go through each header and footer and set them to what you desire. The macro could be expanded to set them, provided you could define a pattern for how you want the header or footer to appear. Such an enhancement, though, is beyond the scope of this simple tip.

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

Adding a Break to Your Document

Want to modify the way your text flows between pages in a document? Word allows you to insert several types of breaks ...

Discover More

Columns in a Text Box

Want to divide a text box into columns? Word doesn't allow you to do this, but there are ways to work around the limitation.

Discover More

Drawing Lines

Lines are one of the most common graphic elements to be added to documents. Here's how you can add the lines you want.

Discover More

Do More in Less Time! An easy-to-understand guide to the more advanced features available in the Microsoft 365 version of Word. Enhance the quality of your documents and boost productivity in any field with this in-depth resource. Complete your Word-related tasks more efficiently as you unlock lesser-known tools and learn to quickly access the features you need. Check out Microsoft 365 Word For Professionals For Dummies today!

More WordTips (ribbon)

Multiple Footers on a Page

Trying to figure out how you want Word to handle footers in your document can be a challenge, primarily because Word ...

Discover More

Putting a File Name and Path in a Default Footer

Want to add a filename and path to the footer of a template? You might be confused by what you see in documents created ...

Discover More

Making Wider Footer Margins

Want the margins used in your footers (or headers) to be wider than the margins used in the rest of your document? There ...

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 7 + 5?

2026-02-21 15:07:52

Jill Sharkey

I create training manuals with lots of sections. Section 2 is unlinked from Section 1 because the cover page has different heades and footers. But the rest of the document has linked sections with different first page and different odd and even pages headers. I use the Styleref field to bring in the chapter headings, except on the first page of each chapter.


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.