View object (Word)

Contains the view attributes (such as show all, field shading, and table gridlines) for a window or pane.

Remarks

Use the View property to return the View object. The following example sets view options for the active window.

With ActiveDocument.ActiveWindow.View 
 .ShowAll = True 
 .TableGridlines = True 
 .WrapToWindow = False 
End With

Use the Type property to change the view. The following example switches the active window to normal view.

ActiveDocument.ActiveWindow.View.Type = wdNormalView

Use the Percentage property to change the size of the text on-screen. The following example enlarges the on-screen text to 120 percent.

ActiveDocument.ActiveWindow.View.Zoom.Percentage = 120

Use the SeekView property to view comments, endnotes, footnotes, or the document header or footer. The following example displays the current footer in the active window in print layout view.

With ActiveDocument.ActiveWindow.View 
 .Type = wdPrintView 
 .SeekView = wdSeekCurrentPageFooter 
End With

Methods

Name
CollapseAllHeadings
CollapseOutline
ExpandAllHeadings
ExpandOutline
ForceLowresUpdate
ForceOffscreenUpdate
NextHeaderFooter
PreviousHeaderFooter
ShowAllHeadings
ShowHeading

Properties

Name
Application
ColumnWidth
ConflictMode
Creator
DisplayBackgrounds
DisplayPageBoundaries
Draft
FieldShading
FullScreen
Magnifier
MailMergeDataView
MarkupMode
PageColor
PageMovementType
Panning
Parent
ReadingLayout
ReadingLayoutActualView
ReadingLayoutTruncateMargins
RevisionsBalloonShowConnectingLines
RevisionsBalloonSide
RevisionsBalloonWidth
RevisionsBalloonWidthType
RevisionsFilter
SeekView
ShadeEditableRanges
ShowAll
ShowBookmarks
ShowComments
ShowCropMarks
ShowDrawings
ShowFieldCodes
ShowFirstLineOnly
ShowFormat
ShowFormatChanges
ShowHiddenText
ShowHighlight
ShowHyphens
ShowInkAnnotations
ShowInsertionsAndDeletions
ShowMainTextLayer
ShowMarkupAreaHighlight
ShowObjectAnchors
ShowOptionalBreaks
ShowOtherAuthors
ShowParagraphs
ShowPicturePlaceHolders
ShowRevisionsAndComments
ShowSpaces
ShowTabs
ShowTextBoundaries
ShowXMLMarkup
SplitSpecial
TableGridlines
Type
WrapToWindow
Zoom

See also

Word Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.