Word For Mac 2016 Page Break Interrupts Numbers Sequence

Open Microsoft Word. Click the 'File' tab at the top-left of the screen. Select 'Open.' Browse to the Word document with the page order that needs changing and double-click the file. Closing the document (obviously after saving) and re-opening restores all page numbering to the correct sequence without having to delete existing numbers or close LIBRE OFFICE. I noticed that the page after a manual margin alteration is renumbered 0 with the subsequent pages numbered in sequence from 1.

The purpose of this Microsoft Word Tips & Microsoft Word Help page is provide a VBA solution to automatic linked headers and footers. Sections in Word can be fickle (see InfoBit Blog ).

One thing that I don't like about the built-in user interface for adding sections is the header and footer of any new section inserted is linked to the previous section header and footer by default and 'stays that way' without further user actions. As shown below, the header text in section two is linked by default to the header text in section one. While this feature is very handy for repeating header and footer information in subsequent sections, I think it becomes a nuisance when you want to change part or all of the header/footer text in your new sections. In the illustration below I've started with a single section document containing header text and then added a section break. Image viewer for mac. When adding the new section the header text in section one is automatically applied to the header text in section two. To further complicate matters, a Word document with sections is sort of like an old fashioned player piano sheet.

2016

While the section one header does not display 'Same as Previous,' the last section of a document (in our case section two) functions in effect as the previous section to section one. That is why when sections are linked, changes in subsequent sections can confusingly roll through a document changing other section's header and footer text. Using a VBA procedure in lieu of a the user interface, you can create a section break and carry over the previous section text. However, once the section and carry over text is created the link is broken. This allows you to make changes in the new header or footer that won't affect the header and footer of the previous section. Option Explicit Dim i As Long Dim j As Long Dim oDoc As Word.Document Sub AddSectionAndKillLinkToPrevious() Dim myRng As Word.Range Set oDoc = ActiveDocument Selection.InsertBreak Type:=wdSectionBreakNextPage 'Get the index number of the added section i = oDoc.Range(0, Selection.Sections(1).Range.End).Sections.Count With oDoc.Sections(i) For j = 1 To 3.Headers(j).LinkToPrevious = False.Footers(j).LinkToPrevious = False Next j End With 'Note: j provides the constant value to unlink all three header footer types.

Lbl_Exit: Exit Sub End Sub Sub RelinkSections() Dim myRng As Word.Range Set oDoc = ActiveDocument For i = 1 To oDoc.Sections.Count With oDoc.Sections(i) For j = 1 To 3.Headers(j).LinkToPrevious = True.Footers(j).LinkToPrevious = True Next j End With Next i lbl_Exit: Exit Sub End Sub Notes: 1. The procedure RelinkSections is provided in case you should want to quickly relink all sections in your document. See: for instructions on how to set up and use the macros provided in this tips page. Free I hope you have found this tips page useful and informative.