- #How to protect header and footer in word 2007 how to
- #How to protect header and footer in word 2007 update
- #How to protect header and footer in word 2007 code
I wouldn’t agree that this is “the most common” way to control a ToC (after all, the default settings use the outline levels inherent in Word’s built-in Heading styles).
#How to protect header and footer in word 2007 code
The Alt-Shift-O method inserts a TC field code to be used by the TOC field code when a table of contents is generated. For example, you could have a ToC for each of several appendices by including a TOC field code for each one with the \b switch limiting the range to just the contents of a given appendix. This method can be used to create multiple tables of contents. In your case, since your T&Cs are included at the end, your bookmark range should probably include just up to the first heading within the T&C section so it gets included in the table of contents. The results will now only include entries for heading levels 1 through 3 found within the bookmarked range.
#How to protect header and footer in word 2007 update
Toggle the view back and press F9 to update the TOC field. It will end up looking something like this: Now edit the TOC field code (Alt-F9 toggles the display between the result and the code) to add the switch. For discussion, say I used the name “UseInToC”. Select the part of your document you wish to have included in the table of contents and assign a bookmark name (Insert > Links > Bookmark). This is particularly true in a multi-user environment, or if you want to maintain several quite distinctly different document layouts.Ĭlare: You can isolate the range of a table of contents by using the “\b BookmarkName” switch within the TOC field code. It is better practice to attach a custom template so you can be sure the style definitions are retained and can be archived with the document(s) associated with them. This will work, but it can create future problems if a different document based on Normal used different settings - and then you re-opened this one. Your instructions cause the TOC styles to be modified for the default template (Normal.dotx). Worse, subsequent levels based on TOC 3 will change as well.Ģ. For some obscure reason, the default is “on” - but with it turned on, any direct formatting change made by a user to an instance of that style will automatically change the style definition! So, if a user decided to make a given TOC 3 line italic, all TOC 3 lines will suddenly become italic.
In the Modify Style dialog, be sure to turn off the “Automatically update” checkbox. However, there are two additional points I’d make:ġ. Your gallery name will appear at the bottom of the Footer drop-down list.Your method is identical to modifying the TOC x styles with the Modify Style dialog - although I grant that accessing it through the ToC dialog may seem more intuitive. Choose Save Selection to Footer Gallery (at the bottom) A dialogue box will open.If you want to add this footer to the Gallery.Right mouse click the field and choose Update Field Press F9 (Keyboard shortcut).Select the link in the footer and a popup balloon appears (see image below).If your document is saved, you should have the path and file name inserted.If you want to add the path, click the Add Path to File Name check box (on the right side).Under Categories select Document Information.The Field dialogue box will open (see image below)įollowing are two examples using the Field dialogue box Choose the Quick Parts command and select a Field.
From the Header and Footer tools - Design tab, in the Insert group.
#How to protect header and footer in word 2007 how to
The following example shows you how to insert a document name (and path) into a Footer. You can insert a "field" into a Header or Footer to automate your document.