Share via


Window.View Property

Excel Developer Reference

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.

Visual Basic for Applications
  ActiveWindow.View = xlPageBreakPreview

See Also