View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Adding a permanent Toolbar to Word

You can do both with vba

For the outlining toolbar - add

CommandBars("Outlining").Visible = True

to each of an autoopen and an autonew macro in normal.dot and the bar will
be open for each new and opened document.

To update the TOC - use the following macro (replace the tool on the
outlining toolbar with this macro)

Sub UpdateAllTOC()
Dim oTOC As TableOfContents
For Each oTOC In ActiveDocument.TablesOfContents
oTOC.Update
Next oTOC
End Sub

or simply update all the fields using the code at
http://www.gmayor.com/installing_macro.htm


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Fiance wrote:
Hello,

I can't find a way to satisfy this one preference of mine: how do I
make the Outlining toolbar visible all the time? Now, when I close
Word, it just disappears and I have to show it every time. No options
in the Customize menu or Tools...

In addition, is there a way to permanently avoid the Update TOC dialog
("update all table" or "update page numbers only")? I need "update all
table" always.

Thanks!