P
Peter van de Kerkhof
Hi
I want to update all fields in a document.
Dim aTOC As TableOfContents
For Each aTOC In ActiveDocument.TablesOfContents ' update all tables
aTOC.Update
Next aTOC
Selection.WholeStory ' update content
Selection.Fields.Update
Selection.HomeKey ' Unselect content
ActiveDocument.PrintPreview ' Update headers and footers
ActiveDocument.ClosePrintPreview
does the trick
But I want to avoid blinking of the screen with "Select All" and "Print
Preview", update etc.
Are there solutions for this??
Regards Peter
I want to update all fields in a document.
Dim aTOC As TableOfContents
For Each aTOC In ActiveDocument.TablesOfContents ' update all tables
aTOC.Update
Next aTOC
Selection.WholeStory ' update content
Selection.Fields.Update
Selection.HomeKey ' Unselect content
ActiveDocument.PrintPreview ' Update headers and footers
ActiveDocument.ClosePrintPreview
does the trick
But I want to avoid blinking of the screen with "Select All" and "Print
Preview", update etc.
Are there solutions for this??
Regards Peter