The benefit of this approach is that STYLEREF fields are, for some strange reason, updated dynamically whenever the source information (your version number) changes. (The style should be used only for the version number.) You can then use a STYLEREF field in the footer, and your version number is duplicated there. Instead, delete the bookmark and apply a unique style to the version number. If the field is not updating, then you are probably using a REF field in the footer to reference the bookmarked version number on the title page. This results in the fields in the document being updated-regardless of location-because most versions of Word automatically update fields whenever you print or use Print Preview.Īnother approach is to change how you are using your fields. Note that this macro only displays Print Preview for the current document and then closes Print Preview. The result is that all the fields end up getting updated.Īnother simple, effective way to do it is shown here: The macro steps through all of the defined story ranges (layers) in the document and then steps through each field in each of those ranges. How you do this has been covered in other issues of WordTips, but here is a rather simple macro that will do the updating: One easy way is to use a macro to update all fields, regardless of where they are located. If you want to affect the fields in the header or footer, you need to place the insertion point within the header or footer and then use Ctrl+A. When you are in the main document and you press Ctrl+A, you are selecting all the text in the main document layer, and the subsequent action (pressing F9) affects only what you've selected. Your main document text is on one layer and other elements are on different layers, such as the graphics layer or the header/footer layer. The reason that this doesn't work is because Word utilizes the concept of "layers" or "stories" in putting a document together. Christina wonders why the field isn't updating. When she updates the version number on the title page, it doesn't update on the footer, even if she presses Ctrl+A and then presses F9. She uses a field in the footer of the document to reference this version number. Up next, we’ll use field codes to add multiple Tables of Contents to our document.Christina has a version number that is on the title page of her document, and she updates it manually. Now you have another way to add your own content to a Table of Contents.įield codes may seem a little scary at first, but they do open up a whole lot of possibilities. Remember, we assigned level 8 to the TC entry, so go to the TOC 8 Style and click Modify.Ĭlick Format and Paragraph, and indent the Left and Right margins, the same way we did in the Summary Style. The values are flickering and in most cases not displaying the information on the second line. Go to the HOME tab and open the Styles pane. For the last month (since early 2022), in Word (non-browser version), the styleref field values inserted into table cells in headers or footers are not rendering/displaying in Word very well when the value needs to wrap to the next line. The last thing we might want to do is format the text. And you can see the description below Domestic Partners. To instruct Word to display TC field entries in the Table of Contents, click ahead of the 'T' switch and type backslash 'f', and a space. To finish, go back up to the Table of Contents and press Alt+F9 to display the TOC field code. Here’s the field code, the text and the switches that the dialog box added.Ĭlick Show/Hide Paragraph Marks again to hide the field with the text. To see it, go to the HOME tab and click the Show/Hide Paragraph Marks button. ![]() ![]() I chose 8 because it is not likely to be used for any other TOC entry.Īnd finally, check Suppresses page number, so that the page number doesn’t display. This assigns TOC level 8 to the text, so that it will be formatted with the TOC 8 Style. Then, under Field options, check Outline level and type 8. ![]() This is the text that will appear in the TOC, but not in the body of the document. ![]() Type the descriptive text you want in the Text entry box. When you do, you get these options, which correspond to the switches that are available for TC. With this dialog box, you can insert any field you want. Then, click the INSERT tab, click Quick Parts, and Field. We can create descriptive text specifically for the Table of Contents and hide it in the field code, so that it appears in the Table of Contents but not the body of your document.Ĭlick at the beginning of the first paragraph in this section. In the first movie, we used a custom style to mark text to include in the Table of Contents.īut by using the TC field we have a lot more flexibility.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |