DocumentWindow.NewWindow method (PowerPoint)

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.

Syntax

expression.NewWindow

expression A variable that represents a DocumentWindow object.

Return value

DocumentWindow

Example

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.NewWindow

oldW.Activate

See also

DocumentWindow Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.