Class SolutionsModule (Outlook VBA)

The class SolutionsModule represents the Solutions navigation module in the navigation pane of an explorer. To use a SolutionsModule class variable it first needs to be instantiated, for example

AddSolution

Adds a solution root folder and its subfolders to the Solutions module.

If the AddSolution method succeeds and no solution root folder previously existed under the Solutions module, Microsoft Outlook displays the Solutions module in the NavigationPane. You cannot add the following folders to the Solutions module as a solution root folder:

AddSolution (Solution, Scope)


Dim sme As SolutionsModule: Set sme = 
sme.AddSolution Scope:=olHideInDefaultModules

Arguments

The following arguments are required:

Solution (MAPIFolder) - Specifies the solution root folder to add to the Solutions module.

Scope (OlSolutionScope) - Specifies whether to display the folders that are in the solution only in the Solutions module and the Folder List, or to display them in their respective default modules in the navigation pane as well.

Possible return values are olHideInDefaultModules - The solution root and its subfolders are displayed in the Solutions module and the Folder List, olShowInDefaultModules - The solution root and its subfolders are displayed in the Solutions module and the Folder List, as well as in their respective default modules.

Class

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


Dim sme As SolutionsModule: Set sme = 
Dim oocsClass As OlObjectClass
oocsClass = sme.Class

Name

Returns a String value that represents the localized display name for the SolutionsModule object.

The display name of the Solutions module can be customized if there is only one solution root folder under the Solutions module. If there are multiple solution root folders, the name reverts back to Solutions.


Dim sme As SolutionsModule: Set sme = 
Dim strName As String
strName = sme.Name

Returns an OlNavigationModuleType constant that represents the navigation module type for the SolutionsModule object. Here you can find possible values for OlNavigationModuleType.

For the SolutionsModule object, this property returns the value olModuleSolutions.


Dim sme As SolutionsModule: Set sme = 
Dim onmNavigationModuleType As OlNavigationModuleType
onmNavigationModuleType = sme.NavigationModuleType

Position

Returns or sets a Long value that represents the ordinal position of the SolutionsModule object when it is displayed in the Navigation Pane.

This property can only be set to a value between 1 and 9. An error occurs if you attempt to set this property to a value outside that range. If no solutions exist in the Solutions module, setting or getting the Position property also raises an error. Changing the value of this property for a given SolutionsModule object changes the Position values of other navigation modules in a NavigationModules collection, depending on the relative change between the new value and the original value.


Dim sme As SolutionsModule: Set sme = 
sme.Position =

Session

Returns the NameSpace object for the current session.

Returns Null (Nothing in Visual Basic) if there is no logged-on 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.

Visible

Returns or sets a Boolean value that indicates whether the Solutions module is displayed in the navigation pane.

If there are no solutions under the Solutions module, setting or getting the Visible property raises an error.


Dim sme As SolutionsModule: Set sme = 
sme.Visible = True