Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
How to Update Entire TOC Always?
When updating TOC with F9, Word prompts with
"update only page numbers" or "Entire Table" . Can I skip this dialog and update entire table by assigning a key to some command? I tried assigning key to UpdateTocFull but there is no response when I press the hot-key (Alt+U is what I tried) The command with Toc in it seem to be these three. Any other command I am missing? UpdateTableOfContents UpdateToc UpdateTocFull Thanks in advance. Jayawanth |
#2
Posted to microsoft.public.word.tables
|
|||
|
|||
How to Update Entire TOC Always?
Use a macro such as the following:
Sub UpdateAllTOCs() For Each toc In ActiveDocument.TablesOfContents toc.Update Next toc End Sub You can attach it to a keyboard shortcut and/or to a toolbar (or to the QAT in Word 2007). See http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "Jayawanth" wrote: When updating TOC with F9, Word prompts with "update only page numbers" or "Entire Table" . Can I skip this dialog and update entire table by assigning a key to some command? I tried assigning key to UpdateTocFull but there is no response when I press the hot-key (Alt+U is what I tried) The command with Toc in it seem to be these three. Any other command I am missing? UpdateTableOfContents UpdateToc UpdateTocFull Thanks in advance. Jayawanth |
#3
Posted to microsoft.public.word.tables
|
|||
|
|||
How to Update Entire TOC Always?
I am trying to show messages like "Updating #n of m TOCs" in the status bar
but each time it gets overwritten by words section, page etc. Can we use the unused part of the StatusBar for displaying status messages? Or perhaps MessageBox where we update the message and eventually pull it down after the last message and the user OKs it? "Stefan Blom" wrote: Use a macro such as the following: Sub UpdateAllTOCs() For Each toc In ActiveDocument.TablesOfContents toc.Update Next toc End Sub You can attach it to a keyboard shortcut and/or to a toolbar (or to the QAT in Word 2007). See http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "Jayawanth" wrote: When updating TOC with F9, Word prompts with "update only page numbers" or "Entire Table" . Can I skip this dialog and update entire table by assigning a key to some command? I tried assigning key to UpdateTocFull but there is no response when I press the hot-key (Alt+U is what I tried) The command with Toc in it seem to be these three. Any other command I am missing? UpdateTableOfContents UpdateToc UpdateTocFull Thanks in advance. Jayawanth |
#4
Posted to microsoft.public.word.tables
|
|||
|
|||
How to Update Entire TOC Always?
I have to admit I don't know how (or even if) you can access the status bar
via a VBA macro. Ask in a programming newsgroup such as microsoft.public.word.vba.general. A simple message box could be displayed, of course, but that would probably just annoy users: Sub UpdateAllTOCs() counter = ActiveDocument.TablesOfContents.Count For i=1 to counter MsgBox "Updating TOC # " & i & " of " & counter & " TOCs" ActiveDocument.TablesOfContents(i).Update Next i End Sub -- Stefan Blom Microsoft Word MVP "Jayawanth" wrote in message ... I am trying to show messages like "Updating #n of m TOCs" in the status bar but each time it gets overwritten by words section, page etc. Can we use the unused part of the StatusBar for displaying status messages? Or perhaps MessageBox where we update the message and eventually pull it down after the last message and the user OKs it? "Stefan Blom" wrote: Use a macro such as the following: Sub UpdateAllTOCs() For Each toc In ActiveDocument.TablesOfContents toc.Update Next toc End Sub You can attach it to a keyboard shortcut and/or to a toolbar (or to the QAT in Word 2007). See http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "Jayawanth" wrote: When updating TOC with F9, Word prompts with "update only page numbers" or "Entire Table" . Can I skip this dialog and update entire table by assigning a key to some command? I tried assigning key to UpdateTocFull but there is no response when I press the hot-key (Alt+U is what I tried) The command with Toc in it seem to be these three. Any other command I am missing? UpdateTableOfContents UpdateToc UpdateTocFull Thanks in advance. Jayawanth |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Stop asking to update entire table of contents | New Users | |||
Update auto checked but date and time do not update when I reopen | Microsoft Word Help | |||
Update fields in entire document in Word 2003 | Microsoft Word Help | |||
Update entire document | Microsoft Word Help | |||
Force update of Linked Files on update | Microsoft Word Help |