But you say in your original post that "YOU" update the page heading on each page:
"Great so far, but I then update the heading on each page with just A & B."
If you TOC is created based on styles e.g., Heading 1 and you change the Heading 1 text then the TOC will update to reflect the changed text.
You might try:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
ActiveDocument.TablesOfContents(1).UpdatePageNumbe rs
lbl_Exit:
Exit Sub
End Sub
|