Class Pane (PowerPoint VBA)

An object representing one of the three panes in normal view or the single pane of any other view in the document window.


To use a Pane class variable it first needs to be instantiated, for example

Dim pan as Pane
Set pan = ActiveWindow.ActivePane

The following procedures can be used to set variables of type Pane: DocumentWindow.ActivePane, Panes.Item and DocumentWindow.Panes


Activates the specified object.



Returns whether the specified pane or window is active.

The value returned by the Active property can be one of these MsoTriState constants.

Dim mtsActive As Office.MsoTriState
mtsActive = ActiveWindow.ActivePane.Active


Returns the parent object for the specified object.


Returns the type of view for the specified pane.

Possible Values are ppViewHandoutMaster - Handout Master, ppViewMasterThumbnails - Master Thumbnails, ppViewNormal - Normal, ppViewNotesMaster - Notes Master, ppViewNotesPage - Notes Page, ppViewOutline - Outline, ppViewPrintPreview - Print Preview, ppViewSlide - Slide, ppViewSlideMaster - Slide Master, ppViewSlideSorter - Slide Sorter, ppViewThumbnails - Thumbnails, ppViewTitleMaster - Title Master.

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

Dim pvtViewType As PpViewType
pvtViewType = ActiveWindow.ActivePane.ViewType


Returns the number of objects in the specified collection.

Dim lngCount As Long
lngCount = ActiveWindow.Panes.Count


Returns a single Pane object from the specified Panes collection.

Syntax : expression.Item (Index)

Index: The index number of the single Pane object in the collection to be returned.

Dim pan As Pane
Set pan = ActiveWindow.Panes(Index:=1)


Returns the parent object for the specified object.