Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 1.58 KB

Word.View.SeekView.md

File metadata and controls

77 lines (47 loc) · 1.58 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
View.SeekView property (Word)
vbawd10.chm161808412
vbawd10.chm161808412
Word.View.SeekView
94b026a0-92f9-32c4-0394-d2b02fbcb942
06/08/2017
medium

View.SeekView property (Word)

Returns or sets the document element displayed in print layout view. The property may be set to any of the WdSeekView constants. Read/write WdSeekView.

Syntax

expression. SeekView

expression Required. A variable that represents a 'View' object.

Remarks

This property generates an error if the view is not print layout view.

Example

If the active document has footnotes, this example displays footnotes in print layout view.

If ActiveDocument.Footnotes.Count >= 1 Then 
 With ActiveDocument.ActiveWindow.View 
 .Type = wdPrintView 
 .SeekView = wdSeekFootnotes 
 End With 
End If

This example shows the first page footer for the current section.

ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter = True 
With ActiveDocument.ActiveWindow.View 
 .Type = wdPrintView 
 .SeekView = wdSeekFirstPageFooter 
End With

If the selection is in a footnote or endnote area in print layout view, this example switches to the main document.

Set myView = ActiveDocument.ActiveWindow.View 
If myView.SeekView = wdSeekFootnotes Or _ 
 myView.SeekView = wdSeekEndnotes Then 
 myView.SeekView = wdSeekMainDocument 
End If

See also

View Object

[!includeSupport and feedback]