SolutionsModule object (Outlook)

Represents the Solutions navigation module in the navigation pane of an explorer.

Remarks

The Solutions navigation module contains folders that developers of individual add-ins want to expose to users in the navigation pane. Each solution has one root folder under the Solutions module, and each root folder can contain subfolders that hold heterogeneous Outlook items.

To add solution folders programmatically to the Solutions module, use the SolutionsModule object, which is derived from the NavigationModule object.

To obtain an object for the Solutions module, you must first determine whether the Solutions module exists in the navigation pane. To do that, use the Modules property for the NavigationPane object to obtain a NavigationModules collection, and then specify the argument olModuleSolutions in the GetNavigationModule method of the NavigationModules collection.

If the call is successful, you can then cast the returned NavigationModule object reference as a SolutionsModule object to access the properties and methods for that navigation module.

To add a solution root folder and its subfolders, pass a Folder object reference to the AddSolution method of the SolutionsModule object. The default position of the Solutions module on the navigation pane is '9'.

If no solutions have been added to the Solutions module, it is not visible in the navigation pane, and any attempt to set the Position or the Visible properties of the SolutionsModule object raises an error. In addition, any attempt to set the SolutionsModule as the CurrentModule property of the NavigationPane object raises an error.

Example

To see an example of an add-in that adds folders to the Solutions module, see the articleProgramming the Outlook 2010 Solutions Module on MSDN. The add-in in the article renames the Solutions module as Solution Demo, adds calendar, contacts, and tasks folders as subfolders to the solution root folder, sets custom icons for each of the subfolders, and customizes the navigation pane to move and enlarge the button for the Solution Demo module.

Methods

Name
AddSolution

Properties

Name
Application
Class
Name
NavigationModuleType
Parent
Position
Session
Visible

See also

Outlook Object Model Reference

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.