Share via


DocumentWindow.ViewType Property

PowerPoint Developer Reference

Returns or sets the type of the view contained in the specified document window. Read/write.

Syntax

expression.ViewType

expression   A variable that represents a DocumentWindow object.

Remarks

The value of the ViewType property can be one of these PpViewType constants.

ppViewHandoutMaster
ppViewMasterThumbnails
ppViewNormal
ppViewNotesMaster
ppViewNotesPage
ppViewOutline
ppViewPrintPreview
ppViewSlide
ppViewSlideMaster
ppViewSlideSorter
ppViewThumbnails
ppViewTitleMaster

Example

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

Visual Basic for Applications
  With Application.ActiveWindow
    If .ViewType = ppViewNormal Then
        .ViewType = ppViewSlideSorter
    End If
End With

See Also