Class Panes (Outlook VBA)
Contains the panes displayed by the specified Explorer. To use a Panes class variable it first needs to be instantiated, for example
Dim pns as Panes
Set pns = ActiveExplorer.Panes
Class
Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for
Dim oocsClass As OlObjectClass
oocsClass = ActiveExplorer.Panes.Class
Count
Returns a Long indicating the count of objects in the specified collection.
Dim lngCount As Long
lngCount = ActiveExplorer.Panes.Count
Item
Returns a pane from a collection.
Item (Index)
Index: Either the index number of the object, or a value used to match the default property of an object in the collection.
Dim pan As Pane
pan = ActiveExplorer.Panes(Index:=1)
Session
Returns the NameSpace object for the current session.
The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. Both members serve the same purpose. For example, the following statements do the same function: