Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.22 KB

Excel.Application.Windows.md

File metadata and controls

52 lines (31 loc) · 1.22 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.Windows property (Excel)
vbaxl10.chm183114
vbaxl10.chm183114
Excel.Application.Windows
07e54620-c2f5-2354-f313-9756a0f17425
04/05/2019
medium

Application.Windows property (Excel)

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

Syntax

expression.Windows

expression A variable that represents an Application 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 closes the first open or hidden window in Microsoft Excel.

Application.Windows(1).Close

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

[!includeSupport and feedback]