Written by Allen Wyatt (last updated October 28, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021
Aaron often receives documents from others in which he needs to standardize the appearance of the document. He can attach a template, which allows him to apply styles to the text in the document. What he really needs, though, is a way to attach standard headers and footers to the document. He's defined those in his template, but attaching the template doesn't add the headers and footers. He wonders if there is an easy way to add standard headers and footers to these documents.
When you attach a template to an existing document, what you are essentially doing is providing the document access to the set of styles and macros stored in the template. The only way for the document to acquire the page- or section-level characteristics of the template is to create a document based on that template. This is why many people choose to follow this general sequence:
If you cannot, for some reason, go this route, the next best thing is to create a set of Building Blocks that define the text you want in your header and footer. You can then save time by using the Building Blocks to add the headers and footers into any document you wish—including the one you want to standardize.
Finally, if you wanted to, you could create a macro to add in the desired headers and footers. The macro doesn't have to be fancy; here's one that simply adds standardized header and footer text to each section in the document:
Sub MyHeadersAndFooters() Dim i As Long For i = 1 To ActiveDocument.Sections.Count With ActiveDocument.Sections(i) .Headers(wdHeaderFooterPrimary).Range.Text = "Header Text Here" .Footers(wdHeaderFooterPrimary).Range.Text = "Footer Text Here" End With Next i End Sub
In order to use the macro, simply replace "Header Text Here" and "Footer Text Here" with your desired header and footer text. This macro is only a starting point, as it doesn't apply any special styles or include any fields (such as page numbers) that you may need.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (2728) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
If you can produce output on a number of different printers, you may want Word to indicate on your printouts which ...
Discover MoreIf you don't want the information in a header or footer to be changed by users of your document, there are a couple of ...
Discover MoreNeed to get headers and footers from one document to another? You can use the steps in this tip to help make quick work ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments