Explorer.NavigationPane Property (Outlook)

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

Version Added: Outlook 2007

expression .NavigationPane

expression A variable that represents an Explorer object.

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

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 
 

Show:
© 2014 Microsoft