Class NavigationModules (Outlook VBA)

Contains a read-only set of NavigationModule objects that represent the navigation modules displayed by the navigation pane. To use a NavigationModules class variable it first needs to be instantiated, for example


Dim nms as NavigationModules
Set nms = ActiveExplorer.NavigationPane.Modules

Class

Returns an OlObjectClass constant indicating the object's class. Here you can find possible values for OlObjectClass.

This property returns olNavigationModules for the NavigationModules object.


Dim oocsClass As OlObjectClass
oocsClass = ActiveExplorer.NavigationPane.Modules.Class

Count

Returns a Long indicating the count of objects in the specified collection.


Dim lngCount As Long
lngCount = ActiveExplorer.NavigationPane.Modules.Count

GetNavigationModule

Retrieves a NavigationModule object with the specified navigation module type from the navigation pane.

GetNavigationModule (ModuleType)

ModuleType: The type of navigation module to be retrieved.


Dim nmeGetNavigationModule As NavigationModule
Set nmeGetNavigationModule = ActiveExplorer.NavigationPane.Modules.GetNavigationModule(ModuleType:=olModuleCalendar)

Item

Returns a NavigationModule object from the collection.

The Name property is the default property of the NavigationModule object.

Item (Index)

Index: Either the integer index of the position of the navigation module in the navigation pane, or the value used to match the default property of an object in the collection.


Dim nme As NavigationModule
Set nme = ActiveExplorer.NavigationPane.Modules(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 perform the same function: