TOCCount = ĪctiveDocument.TablesOfContents(TOCCount).UpdateĪpplication.StatusBar = “Updating active panes (4/7)” ‘ Update all the Table of Contents within the documentĪpplication.StatusBar = “Updating all Table of Contents (3/7)” StartPage = (wdActiveEndPageNumber)Īpplication.StatusBar = “Updating all fields within Document (1/7)”Īpplication.StatusBar = “Updating all fields within Stories (2/7)”įor Each oStory In ActiveDocument.StoryRanges Set actWindow = ActiveDocument.ActiveWindow ![]() ‘ Short explanation: This macro truely updates the complete document, including subsections, header, footer, and even if cross links are used in headings. Save this macro in your normal.dot, and attach it to your menu! ‘ Macro updates all fields within MS Word document. It may be a bit slow (I’m open to suggestions) but it least it will update any document, with any specific construction. This leaves the Table of Contents to be incomplete. Word first updates the table of contents, and only then the cross references in the header. ![]() Or what about having cross references within your headings and a table of contents. To update all your fields in a MS Word document is a real pain in the The header and footer are not updated automatically, and if you use sections, you usually have to update them seperately as well.
0 Comments
Leave a Reply. |