ViewType Property Example

This example changes the view in the active window to slide sorter view if the window is currently displayed in normal view.

With Application.ActiveWindow
    If .ViewType = ppViewNormal Then
        .ViewType = ppViewSlideSorter
    End If
End With

If the view in the active pane is slide view, this example makes the notes pane the active pane. The notes pane is the third member of the Panes collection.

With ActiveWindow
    If .ActivePane.ViewType = ppViewSlide Then
        .Panes(3).Activate
    End If
End With