Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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:
© 2015 Microsoft