Window.View Property (Excel)

Returns or sets the view showing in the window. Read/write XlWindowView.

Syntax

expression .View

expression A variable that represents a Window object.

Remarks

XlWindowView can be one of these XlWindowView constants.

xlNormalView

xlPageBreakPreview

xlPageLayoutView

Example

This example switches the view in the active window to page break preview.

ActiveWindow.View = xlPageBreakPreview

See Also

Concepts

Window Object Members

Window Object