Actually, Outlook VBA cannot scroll the Mail Folder Pane into view without switching its pane type. But there is one workaround that keeps Favorites visible, keeps you in the Mail module, and does not switch to the Folder List / Folder Pane view.
It relies on triggering a Mail Module refresh via an internal command in the Ribbon/CommandBars.
When Outlook is already in the Mail module and receives a “refresh mail” command, it re-renders the Folder Pane, and the rendering routine always scrolls to the active folder.
Here's the code:
Sub RevealCurrentFolderWithoutChangingPaneType()
Dim exp As Explorer
Dim cb As CommandBar
Dim cbc As CommandBarControl
Set exp = Application.ActiveExplorer
'Force Outlook to refresh only the Mail Folder Pane
On Error Resume Next
Set cb = exp.CommandBars("Standard")
If Not cb Is Nothing Then
Set cbc = cb.FindControl(Id:=2521) ' "Refresh Mail" command
If Not cbc Is Nothing Then cbc.Execute
End If
'Reapply current folder (triggers navigation refresh without switching views)
Set exp.CurrentFolder = exp.CurrentFolder
End Sub
What this does
- Calls Outlook’s internal “Refresh Mail View” command (ID 2521).
- Outlook re-draws the Mail Folder Pane without switching to Folder List view.
- During this redraw, Outlook automatically scrolls to the active folder — same behavior as when you manually click a folder in the Mail tree.
- Favorites remain unchanged and visible.
Result
You remain in Mail view, your Favorites remain untouched and the folder tree scrolls to the current folder.