Page numbers not working in sections

<Moved from Windows 7 > Programs>

Hello,

I have three sections in my Word document.  Section 1 is the first two pages.  Section 2 are pages 3 and 4 and Section 3 is pages 5-10.  When I insert pages number i and ii on page 3 and 4 it also adds them to pages 1 and 2.  When I delete them and add page number to page five (1) it doesn't add page numbers 2-5, but it adds i to Section 1 page 1.

I have tried deleting the section breaks and reinserting, but it doesn't help.

Any help would be appreciated.

Candace

Answer
Answer

You need to unlink the headers\footers in the second and third sections from those in the first section of the document.

You can do it manually via the Header & Footers>Design tab of the ribbon, which will appear when you have the selection in the header or footer, or, by running a macro that contains the following code

Dim i As Long, j As Long
With ActiveDocument
    For i = 2 To .Sections.count
        With .Sections(i)
            For j = 1 To .Headers.count
                .Headers(j).LinkToPrevious = False
            Next j
            For j = 1 To .Footers.count
                .Footers(j).LinkToPrevious = False
            Next j
        End With
    Next i
End With

Hope this helps,
Doug Robbins - MVP Office Apps & Services (Word)
dougrobbinsmvp@gmail.com
It's time to replace ‘Diversity, Equity & Inclusion’ with ‘Excellence, Opportunity & Civility’ - V Ramaswamy

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated February 20, 2024 Views 1,514 Applies to: