VBA
Back to TOCJust VideosCondensed TOC
Visual Basic for Applications
- Updating the TOC in a WordprocessingML Document using an AutoOpen Macro
In the screen-cast that I present in this post, I show how you can add a TOC using the Open XML SDK, and then modify the normal.dotx, adding a macro, so that whenever you open a document that contains a TOC, Word repaginates the document and updates the TOC. (Video)