Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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! |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
In Word 2003 (and perhaps also in Word 2002) you should be able to use the
following auto macros: Sub AutoNew() CommandBars("Outlining").Visible = True End Sub Sub AutoOpen() CommandBars("Outlining").Visible = True End Sub in normal.dot to display the toolbar at all times. For assistance, see http://www.gmayor.com/installing_macro.htm. Note that you won't see all buttons if you are not in Outline view. Also note that the macro may not work if used in Word 97 or 2000; see this thread: Outline toolbar http://groups.google.se/group/micros...e45e5296a8085/ -- Stefan Blom Microsoft Word MVP "Fiance" wrote in message oups.com... 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! |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
To update the TOCs of a document, you can also use a macro:
Sub UpdateTheTOC() Dim i As Integer Dim toc As TableOfContents For i=1 to 2 For Each toc In ActiveDocument.TablesOfContents toc.Update Next toc Next i End Sub The outer loop was added just in case the first update inserts an extra page (for the TOC) and potentially causes the page numbering to be wrong; it may not be needed with recent versions of Word. Assign a keyboard shortcut or add it to a toolbar. See http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "Fiance" wrote in message oups.com... 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! |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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! |
#5
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
or simply update all the fields using the code athttp://www.gmayor.com/installing_macro.htm
Thanks for the macros. However, after 10 minutes of trying to follow the Idiot's Guide to Macros, I failed :/ If I create a new macro ("AutoOpen") in the Alt+F8 Window, save it, then try to create the next one ("AutoNew"), the former is overwritten - regardless of the fact that I typed in the unique name and confirmed that I do not want to overwrite. When I type in the unique name ("AutoNew"), and hit Create, Sub AutoNew() ' ' AutoNew Macro ' Macro created 9/7/2007 by a ' End Sub ends up appended to the end of the AutoOpen macro in the VB window. If I save, I still have one macro, not two. |
#6
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Assuming that you haven't got an existing autoopen or autonew macro that you
want to keep, simply select the unwanted bits that you have just created and paste the following over to replace them. This essentially a text file and can be treated in the say way as editing text. Sub AutoNew() CommandBars("Outlining").Visible = True End Sub Sub AutoOpen() CommandBars("Outlining").Visible = True End Sub Sub UpdateAllTOC() Dim oTOC As TableOfContents For Each oTOC In ActiveDocument.TablesOfContents oTOC.Update Next oTOC End Sub which will give you the three macros. Add to or replace the update TOC command on the outlining toolbar with the new update macro. Then save normal.dot -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Fiance wrote: or simply update all the fields using the code athttp://www.gmayor.com/installing_macro.htm Thanks for the macros. However, after 10 minutes of trying to follow the Idiot's Guide to Macros, I failed :/ If I create a new macro ("AutoOpen") in the Alt+F8 Window, save it, then try to create the next one ("AutoNew"), the former is overwritten - regardless of the fact that I typed in the unique name and confirmed that I do not want to overwrite. When I type in the unique name ("AutoNew"), and hit Create, Sub AutoNew() ' ' AutoNew Macro ' Macro created 9/7/2007 by a ' End Sub ends up appended to the end of the AutoOpen macro in the VB window. If I save, I still have one macro, not two. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding a toolbar to a .dot file | Microsoft Word Help | |||
adding a toolbar | Microsoft Word Help | |||
Adding Word documents to toolbar | Microsoft Word Help | |||
Merge keeps adding to my toolbar | Microsoft Word Help | |||
Cursor wiggles in Word only after adding a Format Button to toolbar | New Users |