G
Greg Maxey
Sub Macro1()
ActiveDocument.TablesOfContents(1).UpdatePageNumbers
End Sub
Macro 1 updates the page numbers of a TOC and leaves the descriptive text
unchange. This is expected.
Sub Macro2()
ActiveDocument.TablesOfContents(1).Update
End Sub
Macro 2 does nothing. I would expect that it would update the entire TOC.
Using Word 2003. The only way I can figure out how to update the entire TOC
is with the Update TOC menu item on the Outlining toolbar. Even with this
method I always have to answer a prompt.
What is the VBA code to just update the entire table without the prompt?
Thanks
ActiveDocument.TablesOfContents(1).UpdatePageNumbers
End Sub
Macro 1 updates the page numbers of a TOC and leaves the descriptive text
unchange. This is expected.
Sub Macro2()
ActiveDocument.TablesOfContents(1).Update
End Sub
Macro 2 does nothing. I would expect that it would update the entire TOC.
Using Word 2003. The only way I can figure out how to update the entire TOC
is with the Update TOC menu item on the Outlining toolbar. Even with this
method I always have to answer a prompt.
What is the VBA code to just update the entire table without the prompt?
Thanks