Export (0) Print
Expand All
Expand Minimize

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;

© 2014 Microsoft