窗口。 View 属性 (Excel)Window.View property (Excel)

返回或设置在窗口中显示的视图。Returns or sets the view showing in the window. 读/写**XlWindowView**。Read/write XlWindowView.

语法Syntax

表达式视图expression.View

_表达式_一个代表**Window** 对象的变量。expression A variable that represents a Window object.

示例Example

本示例将活动窗口中的视图切换为分页预览。This example switches the view in the active window to page break preview.

ActiveWindow.View = xlPageBreakPreview

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.