다음을 통해 공유


Workbook.Windows Property (Excel)

Returns a Windows collection that represents all the windows in the specified workbook. Read-only Windows object.

Syntax

.Windows

A variable that represents a Workbook object.

Remarks

Using this property without an object qualifier is equivalent to using Application.Windows.

This property returns a collection of both visible and hidden windows.

Example

This example names window one in the active workbook "Consolidated Balance Sheet." This name is then used as the index to the Windows collection.

ActiveWorkbook.Windows(1).Caption = "Consolidated Balance Sheet" 
ActiveWorkbook.Windows("Consolidated Balance Sheet") _ 
 .ActiveSheet.Calculate

참고 항목

개념

Workbook Object

Workbook Object Members