akokin
03-11-2008, 07:07 AM
Hello.
Is there any way to update at once all the Header&Footer which is into different sections?
The code (show below) update only the Header (or Footer) into current page.
Sub updateHeadersFooters()
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.WholeStory
Selection.Fields.Update
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Sub
Thank you.
Is there any way to update at once all the Header&Footer which is into different sections?
The code (show below) update only the Header (or Footer) into current page.
Sub updateHeadersFooters()
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.WholeStory
Selection.Fields.Update
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Sub
Thank you.