Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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;
}

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.