#1   Report Post  
Posted to microsoft.public.word.formatting.longdocs
[email protected] lykoszine@gmail.com is offline
external usenet poster
 
Posts: 1
Default Broken TOC updating

Hi Guys,

I've been looking at some macros to automatically change a toc in word
2000 to enable clickable entries (the \h in the toc field), then update
the toc.

Now whenever I try to update the toc, I no longer get the option of
updating line numbers or the whole table. This happens whether I run
the macro or not.

As far as I know I should be able to update the toc with

ActiveDocument.TablesOfContents(1).Update

or all fields with

Sub UpdateFields()
Dim pRange As Word.Range
For Each pRange In ActiveDocument.StoryRanges
Do
pRange.Fields.Update
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
End Sub

But like I say, one of these has broken my toc updating. Even deleting
the toc and adding another does not affect this behaviour.

Help appreciated.
S

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
Automatic Date Updating Problem Zoe Bluestar Microsoft Word Help 1 May 25th 06 12:05 AM
How to repair a broken link to template. Gary Burton Formatting Long Documents 9 January 27th 06 12:48 PM
Why not all fields in document are updating? Elena Microsoft Word Help 9 September 1st 05 03:21 PM
TOC Updating Carrie Microsoft Word Help 3 April 28th 05 03:22 PM
How do I remove heavy horizontal broken lines I did not create fr. jorgcm Microsoft Word Help 1 February 10th 05 07:19 PM


All times are GMT +1. The time now is 09:11 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"