Window Interface

Represents a window. Many worksheet characteristics, such as scroll bars and gridlines, are actually properties of the window.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("00020893-0000-0000-C000-000000000046")> _
Public Interface Window
'Usage
Dim instance As Window
[InterfaceTypeAttribute()]
[GuidAttribute("00020893-0000-0000-C000-000000000046")]
public interface Window

Remarks

The Window object is a member of the Windows collection. The Windows collection returned by the Windows property of the Application object contains all the windows in the application, whereas the Windows collection returned by the Windows property of the Workbook object contains only the windows in the specified workbook.

Use Windows(index), where index is the window name or index number, to return a single Window object.

Note that the active window is always Windows(1).

The window caption is the text shown in the title bar at the top of the window when the window isn’t maximized. The caption is also shown in the list of open files on the bottom of the Windows menu. Use the Caption property to set or return the window caption. Changing the window caption doesn’t change the name of the workbook.

See Also

Reference

Window Members

Microsoft.Office.Interop.Excel Namespace