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.
Dec 27, 2012 How to insert different headers and footers in Microsoft Word 2007. Text tutorial: 1. Make sure your document is completed, otherwise you might end up with spacing issues. Edit the header.
Best mac apps for writers. If there's an option to download a.MOBI or.EPUB ebook or.PDF version of a.) and ($4.99), but the reader I most use now is the simple PDF Highlighter ($4.99), thanks to its unique highlighter review feature.
In the illustration below I've started with a single section document containing header text and then added a section break. 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. Free internet movies for mac. Logitech mouse driver for mac. 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.