共用方式為


Explorer.NavigationPane 屬性 (Outlook)

會傳回 NavigationPane 物件,代表 Explorer 物件的流覽窗格。 唯讀。

語法

expressionNavigationPane

表達 代表 Explorer 物件的 變數。

註解

有些 Explorer 物件可能沒有相關的 NavigationPane 物件。 在這種情況下,此屬性會傳回 Null (在 Visual Basic 中則是 Nothing)。

範例

下列 Visual Basic for Applications (VBA) 範例會從使用中的 Explorer 物件擷取 NavigationPane 物件,然後顯示關於該物件中所包含及顯示之巡覽模組數目資訊。

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

另請參閱

Explorer 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應