Possible to change explorer view?

Add-in Express™ Support Service
That's what is more important than anything else

Possible to change explorer view?
 
Mark De Lorenzo




Posts: 37
Joined: 2015-06-22
On the bottom of my Outlook 2013 view, there is MAIL, CALENDAR, PEOPLE, TASK, ....

1. Are these considered Explorers?
2. Can I (via button) change this view?
Posted 10 Jan, 2019 10:21:08 Top
Andrei Smolin


Add-in Express team


Posts: 16167
Joined: 2006-05-11
Hello Mark,

These are part of the Navigation pane. The buttons represent NavigationModule objects. I suggest that you start with https://docs.microsoft.com/en-us/office/vba/api/outlook.navigationpane and check what you can and what you cannot do.

What do you mean by change this view?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Jan, 2019 10:49:27 Top
Mark De Lorenzo




Posts: 37
Joined: 2015-06-22
Andrei Smolin writes:
What do you mean by change this view?

Change TO the desired view.
Posted 10 Jan, 2019 11:08:06 Top
Andrei Smolin


Add-in Express team


Posts: 16167
Joined: 2006-05-11
See https://docs.microsoft.com/en-us/office/vba/api/outlook.navigationpane.currentmodule.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Jan, 2019 11:13:59 Top
Mark De Lorenzo




Posts: 37
Joined: 2015-06-22
Thank you Andrei, Can you share a small snippet of setting the CurrentModule to a different module?
Dim nav As Outlook.NavigationPane = OutlookApp.ActiveExplorer.NavigationPane
nav.CurrentModule = ????????
Posted 10 Jan, 2019 11:38:33 Top
Andrei Smolin


Add-in Express team


Posts: 16167
Joined: 2006-05-11
Mark,

You can use the NavigationModules.GetNavigationModule() method or NavigationModules.Item(...) method to get the navigation module required. See also https://docs.microsoft.com/en-us/office/vba/api/outlook.navigationmodule.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Jan, 2019 02:54:29 Top