I have a word doc that has multiple TOCs. I need a macro that will update all TOCs at once, page numbers and all.
I know this can be done, but I have little to no knowledge of writing macros to do this. Can anyone help me out?:confused:
Printable View
I have a word doc that has multiple TOCs. I need a macro that will update all TOCs at once, page numbers and all.
I know this can be done, but I have little to no knowledge of writing macros to do this. Can anyone help me out?:confused:
Welcome to the forums. :wave:
If you know how to do it manually, start recoding a maco, perform the task, end the macro recording, and there is the code you will need to do it automatically.
Thanks for the advice, but when I tried it, this was the error I got:
The current document does not contain a table of contents field that can be updated automatically. To insert one, click the Table of Contents button on the References tab. If you filled out a table manually, youu must update it manually.
This made me realize that I couldn't record this macro the easy way. I figured that I would have to "write" it out.
Have any other ideas?
Does anyone have any answers to this?