#1
|
|||
|
|||
Auto Update table of contents on close - how?
Hi,
As the title suggests Im looking for a way to automatically update the table of contents in a word document when it closes. Ive tried: ActiveDocument.Fields.Update which didn't do anything - any suggestions please? Thanks |
#2
|
||||
|
||||
I'd be more inclined to use a Document_Open macro, coded along the lines of:
Code:
Sub Document_Open() Application.ScreenUpdating = False With ActiveDocument .Fields.Update .PrintPreview .ClosePrintPreview End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
When I update table of contents, all the links go dead! | widmerpool | Word Tables | 1 | 05-02-2015 11:24 PM |
Auto Table of Contents not working | namedujour | Word | 3 | 05-16-2013 06:51 AM |
auto-generated Table of Contents has poor formatting? | dylansmith | Word | 7 | 11-02-2012 06:55 PM |
Table of Contents - Direct Field Implementation - Auto-Update Numbering | ztag | Word | 3 | 01-19-2012 03:04 PM |
Table of Contents does not update, when document is opened on other computer | jaybo | Word | 1 | 01-25-2011 04:56 PM |