Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Update Table of Contents

Word 2000 SP3

Is it possible to change the default setting of the Update Table of Contents
options from "Update page numbers only" to "Update entire table" instead?

Many thanks in advance of your assistance.
DeanH
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Update Table of Contents

You can't really change the default, but you can install this macro
and assign a toolbar button and/or keyboard shortcut to it.

Sub UpdateTableOfContents()
Dim toc As TableOfContents

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next
End Sub

See http://www.gmayor.com/installing_macro.htm,
http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm
and
http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm
if needed.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Fri, 3 Nov 2006 04:44:02 -0800, DeanH
wrote:

Word 2000 SP3

Is it possible to change the default setting of the Update Table of Contents
options from "Update page numbers only" to "Update entire table" instead?

Many thanks in advance of your assistance.
DeanH

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Update Table of Contents

Jay, many thanks for your help.

To add:
This macro obviously only updates the tables, how about the cross-references?
My usual process is Ctrl-A, F9, then update entire TOC x3.
This updates all cross-references, Figure & Table numbering, TOC and List of
Figures & Tables.

Again many thanks.
Have a good day.
DeanH

"Jay Freedman" wrote:

You can't really change the default, but you can install this macro
and assign a toolbar button and/or keyboard shortcut to it.

Sub UpdateTableOfContents()
Dim toc As TableOfContents

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next
End Sub

See http://www.gmayor.com/installing_macro.htm,
http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm
and
http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm
if needed.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Fri, 3 Nov 2006 04:44:02 -0800, DeanH
wrote:

Word 2000 SP3

Is it possible to change the default setting of the Update Table of Contents
options from "Update page numbers only" to "Update entire table" instead?

Many thanks in advance of your assistance.
DeanH


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Update Table of Contents

This should update all the fields (including those in headers, footers,
footnotes, etc.) and then all the tables. If you have any tables of
authorities (for legal briefs and such), you'd need another For Each loop
for those.

Sub UpdateTableOfContents()
Dim toc As TableOfContents
Dim oStory As Range
On Error Resume Next
For Each oStory In ActiveDocument.StoryRanges
Do
oStory.Fields.Update
Set oStory = oStory.NextStoryRange
Loop Until oStory Is Nothing
Next

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next

For Each toc In ActiveDocument.TablesOfFigures
toc.Update
Next
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

DeanH wrote:
Jay, many thanks for your help.

To add:
This macro obviously only updates the tables, how about the
cross-references? My usual process is Ctrl-A, F9, then update entire
TOC x3.
This updates all cross-references, Figure & Table numbering, TOC and
List of Figures & Tables.

Again many thanks.
Have a good day.
DeanH

"Jay Freedman" wrote:

You can't really change the default, but you can install this macro
and assign a toolbar button and/or keyboard shortcut to it.

Sub UpdateTableOfContents()
Dim toc As TableOfContents

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next
End Sub

See http://www.gmayor.com/installing_macro.htm,
http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm
and
http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm
if needed.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Fri, 3 Nov 2006 04:44:02 -0800, DeanH
wrote:

Word 2000 SP3

Is it possible to change the default setting of the Update Table of
Contents options from "Update page numbers only" to "Update entire
table" instead?

Many thanks in advance of your assistance.
DeanH



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Update Table of Contents

Jay, fantastic. Many thanks for your very useful help.
All the best.
DeanH

"Jay Freedman" wrote:

This should update all the fields (including those in headers, footers,
footnotes, etc.) and then all the tables. If you have any tables of
authorities (for legal briefs and such), you'd need another For Each loop
for those.

Sub UpdateTableOfContents()
Dim toc As TableOfContents
Dim oStory As Range
On Error Resume Next
For Each oStory In ActiveDocument.StoryRanges
Do
oStory.Fields.Update
Set oStory = oStory.NextStoryRange
Loop Until oStory Is Nothing
Next

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next

For Each toc In ActiveDocument.TablesOfFigures
toc.Update
Next
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

DeanH wrote:
Jay, many thanks for your help.

To add:
This macro obviously only updates the tables, how about the
cross-references? My usual process is Ctrl-A, F9, then update entire
TOC x3.
This updates all cross-references, Figure & Table numbering, TOC and
List of Figures & Tables.

Again many thanks.
Have a good day.
DeanH

"Jay Freedman" wrote:

You can't really change the default, but you can install this macro
and assign a toolbar button and/or keyboard shortcut to it.

Sub UpdateTableOfContents()
Dim toc As TableOfContents

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next
End Sub

See http://www.gmayor.com/installing_macro.htm,
http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm
and
http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm
if needed.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Fri, 3 Nov 2006 04:44:02 -0800, DeanH
wrote:

Word 2000 SP3

Is it possible to change the default setting of the Update Table of
Contents options from "Update page numbers only" to "Update entire
table" instead?

Many thanks in advance of your assistance.
DeanH






  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Update Table of Contents

Just to stay honest... There's a buglet in that code that prevents it from
updating any Table of Figures. To fix it, add the line

Dim tof As TableOfFigures

after the Dim toc line, and change the last loop to this:

For Each tof In ActiveDocument.TablesOfFigures
tof.Update
Next

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

DeanH wrote:
Jay, fantastic. Many thanks for your very useful help.
All the best.
DeanH

"Jay Freedman" wrote:

This should update all the fields (including those in headers,
footers, footnotes, etc.) and then all the tables. If you have any
tables of authorities (for legal briefs and such), you'd need
another For Each loop for those.

Sub UpdateTableOfContents()
Dim toc As TableOfContents
Dim oStory As Range
On Error Resume Next
For Each oStory In ActiveDocument.StoryRanges
Do
oStory.Fields.Update
Set oStory = oStory.NextStoryRange
Loop Until oStory Is Nothing
Next

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next

For Each toc In ActiveDocument.TablesOfFigures
toc.Update
Next
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

DeanH wrote:
Jay, many thanks for your help.

To add:
This macro obviously only updates the tables, how about the
cross-references? My usual process is Ctrl-A, F9, then update entire
TOC x3.
This updates all cross-references, Figure & Table numbering, TOC and
List of Figures & Tables.

Again many thanks.
Have a good day.
DeanH

"Jay Freedman" wrote:

You can't really change the default, but you can install this macro
and assign a toolbar button and/or keyboard shortcut to it.

Sub UpdateTableOfContents()
Dim toc As TableOfContents

For Each toc In ActiveDocument.TablesOfContents
toc.Update
Next
End Sub

See http://www.gmayor.com/installing_macro.htm,
http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm
and
http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm
if needed.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Fri, 3 Nov 2006 04:44:02 -0800, DeanH
wrote:

Word 2000 SP3

Is it possible to change the default setting of the Update Table
of Contents options from "Update page numbers only" to "Update
entire table" instead?

Many thanks in advance of your assistance.
DeanH



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word will not update Table of Contents news New Users 11 October 26th 06 08:08 AM
Trouble Sorting Table Joe McGuire Microsoft Word Help 5 October 2nd 06 09:48 PM
update table of contents Doc Carolyn Microsoft Word Help 2 July 3rd 06 10:10 PM
Problems updating table of contents sscentrix Microsoft Word Help 1 November 11th 05 08:27 AM
Item in Table of Contents throw off numbering Robert McN Page Layout 4 January 27th 05 12:50 AM


All times are GMT +1. The time now is 04:41 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"