Where did you save the macro? It should be in the ThisDocument module of the template which should then be saved as macro enabled. That should then update the TOC, but do note that the TOC is a field that is not automatically updated.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|