Share via


DocumentWindow.NewWindow Method

Opens a new window that contains the same document that is displayed in the specified window. Returns a DocumentWindow object that represents the new window.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function NewWindow As DocumentWindow
'Usage
Dim instance As DocumentWindow
Dim returnValue As DocumentWindow

returnValue = instance.NewWindow()
DocumentWindow NewWindow()

Return Value

Type: Microsoft.Office.Interop.PowerPoint.DocumentWindow
DocumentWindow

Examples

This example creates a new window that contains the contents of the active window (thereby activating the new window) and then switches back to the first window.

Set oldW = Application.ActiveWindow

Set newW = oldW.NewWindowoldW.Activate

See Also

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace