i have this code (button in ribbon) to update the TOC in my document (Word 2010 - Windows 7)
ActiveDocument.TablesOfContents(1).Update
, however it does not update the TOC
The only thing that does is the inbuilt "Update Table" command from the Reference menu.
Pressing the F9 key whilst the cursor is in the TOC does not work, nor does this code
Dim TOC As TableOfContents
With ActiveDocument
For Each TOC In .TablesOfContents
TOC.Update
Next
End With
Any ideas what might be going on as it is very frustrating