Expand Minimize
This topic has not yet been rated - Rate this topic

WorkbookBase.NewWindow Method

Creates a new window.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
public Window NewWindow()

Return Value

Type: Window

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.

This example is for a document-level customization.

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)
© 2013 Microsoft. All rights reserved.