Explorer.NavigationPane property (Outlook)

Returns a NavigationPane object that represents the navigation pane for an Explorer object. Read-only.

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.

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

Explorer Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.