Partilhar via


Explorer.NavigationPane Property

Outlook Developer Reference

Returns a NavigationPane object that represents the Navigation Pane for an Explorer object. Read-only.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.NavigationPane

expression   A variable that represents an Explorer object.

Remarks

Some Explorer objects may not have an associated NavigationPane object. In such cases, this property returns Null (Nothing in Visual Basic.)

Example

The following Visual Basic for Applications (VBA) sample retrieves the NavigationPane object from the active Explorer object and then displays information about the number of navigation modules contained and displayed by the object.

Visual Basic for Applications
  Sub DisplayModuleCounts()
    Dim objPane As NavigationPane
    
    ' Get the NavigationPane object for the
    ' currently displayed Explorer object.
    Set objPane = Application.ActiveExplorer.NavigationPane
    
    ' Display information about modules contained
    ' by the NavigationPane object.
    MsgBox "The Navigation Pane currently contains " & _
        objPane.Modules.Count & _
        " modules, of which " & _
        objPane.DisplayedModuleCount & _
        " are displayed."
    
End Sub

See Also