Share via


ViewType Property

ViewType property as it applies to the DocumentWindow object.

PpViewType

PpViewType can be one of these PpViewType constants.
ppViewHandoutMaster
ppViewMasterThumbnails
ppViewNormal
ppViewNotesMaster
ppViewNotesPage
ppViewOutline
ppViewPrintPreview
ppViewSlide
ppViewSlideMaster
ppViewSlideSorter
ppViewThumbnails
ppViewTitleMaster

expression.ViewType

*expression   * Required. An expression that returns one of the above objects.

ViewType property as it applies to the Pane object.

PpViewType

PpViewType can be one of these PpViewType constants.
ppViewHandoutMaster
ppViewMasterThumbnails
ppViewNormal
ppViewNotesMaster
ppViewNotesPage
ppViewOutline
ppViewPrintPreview
ppViewSlide
ppViewSlideMaster
ppViewSlideSorter
ppViewThumbnails
ppViewTitleMaster

expression.ViewType

*expression   * Required. An expression that returns one of the above objects.

Example

As it applies to the DocumentWindow object.

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

As it applies to the Pane object.

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

Applies to | DocumentWindow Object | Pane Object

See Also | Working with Panes and Views