Updating field codes word
Updating field codes word - 21 questions ask guy your dating
(If it works in other versions, all the better; I originally had this problem with Word 2007, and nothing seems to have changed since then.) This includes cross-references, page numbers, tables of contents, indexes, headers, etc.
a longer table of contents changes some page numbers in the main text. This includes updates of page numbers in '' tables (but would not add or remove entries). Taking care of the common cases is good enough for me. Sub Update All Fields In(doc As Document) '' Update tables. Update Next toc Dim tof As Table Of Figures For Each tof In doc. In fact, it's ok if I have to run the macro two or three times before it stabilizes. We do this first so that they contain all necessary '' entries and so extend to their final number of pages. I just want to have a single macro that finds everything.) My attempt so far doesn't update fields in text boxes inside figures. I'm pretty sure it didn't in Word 2007 but I no longer have it to test. Next Story Range '' FIXME: for footnotes, endnotes and comments, I get a pop-up '' "Word cannot undo this action. In fact without the option some fields are updated but not all.
Sub Update All Fields() Update All Fields In Active Document End Sub Working for me now in Word 2010 (where the setting is in“File → Options → Display”).
Update Wend Next sr End Sub '' Update all the fields, indexes, etc. '' This is a parameterless subroutine so that it can be used interactively.
Word is chock full of tricks, shortcuts, and settings that can make working with documents faster, easier, more powerful, and more efficient.
This chapter introduces you to many of the techniques that cover everything, from easier ways to save and protect your documents to scripts that calculate editing time and billable time.
If you're a regular Word user, then you probably work with many different Word documents during an average work day, and you've probably got hundreds or even thousands of Word documents stored on your hard drive.
The document is the basic Word container, and knowing how to work with documents is a fundamental Word skill.