Class Panes (PowerPoint VBA)
A collection of Pane objects that represent the slide, outline, and notes panes in the document window for normal view, or the single pane of any other view in the document window. To use a Panes class variable it first needs to be instantiated, for example
Dim pns as Panes
Set pns = ActiveWindow.Panes
Count
Returns the number of objects in the specified collection.
Dim lngCount As Long
lngCount = ActiveWindow.Panes.Count
Item
Returns a single Pane object from the specified Panes collection.
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)