이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

Application.Windows Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .Windows

expression A variable that represents an Application object.

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

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

This example closes the first open or hidden window in Microsoft Excel.


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") _