View Single Post
 
Old 04-08-2016, 10:00 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote