Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-03-2015, 03:17 PM
billy8b8 billy8b8 is offline Open a document based on a template, the page numbers in the TOC won't update Windows 7 64bit Open a document based on a template, the page numbers in the TOC won't update Office 2013
Novice
Open a document based on a template, the page numbers in the TOC won't update
 
Join Date: Jul 2014
Posts: 20
billy8b8 is on a distinguished road
Default Open a document based on a template, the page numbers in the TOC won't update

I have created a template with boilerplate text and a TOC. In the template, the page numbers in the TOC are correct. When I open a new document based on the template, all of the page numbers are “3.” I can’t figure out why.

This is a template that will be used by many people in a company, and they can’t all be expected to update the TOC. Also, they may need to go to a specific page when they open the new document.

Because I can’t figure out why this happens, I want to write a macro that updates the TOC when they open a new document based on the template. I wrote this macro:

Private Sub Document_New()
ActiveDocument.TablesOfContents(1).Update


End Sub

But it doesn’t seem to work either. Can the problem be with “ActiveDocument.”?

Thanks.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-Update Amended Page Numbers? herbertp Word 5 02-01-2013 02:20 AM
Need a word template for reports where the numbers update automatically cadonn Word 3 01-24-2013 07:08 AM
Update TOC Page Numbers gdh15 Word 1 11-02-2012 04:29 PM
Open a document based on a template, the page numbers in the TOC won't update Automatically update page numbers when new pages inserted nvidovic Word 2 05-23-2012 10:57 AM
Update Document Template when Saving the Document File bjbercaw Word 3 11-16-2010 02:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:49 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