Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-08-2016, 10:00 AM
gmaxey gmaxey is offline Bookmark error in TOC when headings replaced Windows 7 32bit Bookmark error in TOC when headings replaced 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
 

Tags
toc, toc hyperlinks, toc problems



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bookmark error in TOC when headings replaced Bookmark not replaced when inserting but to lower right corner of image newbieX Word VBA 6 11-20-2015 02:03 PM
Bookmark error in TOC when headings replaced Bookmark Not Showing Bookmark RegAudit Word 6 03-16-2015 11:08 PM
Bookmark error in TOC when headings replaced Style Replaced When Deleting a Line WordHostage Word 2 11-26-2011 11:24 AM
Cannot remove replaced personal folder rumin Outlook 2 01-31-2011 08:28 AM
TOC printing Error Bookmark not Defined techexpressinc Word 0 12-14-2008 05:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft