NewWindow Method
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Workbook.NewWindow Method

Creates a new window.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public virtual Window NewWindow ()

The following code example uses the NewWindow method to create a new Excel application window that has the caption "This is a new window" and does not have gridlines.

private void WorkbookNewWindow()
{
    Excel.Window newWindow = this.NewWindow();
    newWindow.Caption = "This is a new Window";
    newWindow.DisplayGridlines = false;
}

Show:
© 2016 Microsoft