SeekView Property
Applies To
View object.
Description
Returns or sets the document element displayed in page layout view. Can be one of the following WdSeekView constants: wdSeekCurrentPageFooter, wdSeekCurrentPageHeader, wdSeekEndnotes, wdSeekEvenPagesFooter, wdSeekEvenPagesHeader, wdSeekFirstPageFooter, wdSeekFirstPageHeader, wdSeekFootnotes, wdSeekMainDocument, wdSeekPrimaryFooter, or wdSeekPrimaryHeader. Read/write Long.
Note This property generates an error if the view is not page layout view.
See Also
HeaderFooter property, SplitSpecial property.
Example
If the active document has footnotes, this example displays footnotes in page layout view.
If ActiveDocument.Footnotes.Count >= 1 Then
With ActiveWindow.View
.Type = wdPageView
.SeekView = wdSeekFootnotes
End With
End If
This example shows the first page footer for the current section.
ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter = True
With ActiveWindow.View
.Type = wdPageView
.SeekView = wdSeekFirstPageFooter
End With
If the selection is in a footnote area or endnote area in page layout view, this example switches to the main document.
Set myView = ActiveWindow.View
If myView.SeekView = wdSeekFootnotes Or _
myView.SeekView = wdSeekEndnotes Then
myView.SeekView = wdSeekMainDocument
End If