Retain navigation pane view

Outlook 2013

My boss has multiple mailboxes with multiple subfolders loaded in his Outlook profile.  His complaint is that every time he starts Outlook, he has to manually expand all the mailboxes and their various subfolders to get to what he wants.  Is there a way that Outlook can retain that full expanded view every time he launches it?

Thanks in advance!

July 23rd, 2015 3:19pm

Hi blinkyjesus,

If you want to expand all folders in Outlook, you can try to use the VBA code to get your result.

Private Sub Application_Startup()
  ExpandAllFolders
End Sub

Private Sub ExpandAllFolders()
  On Error Resume Next
  Dim Ns As Outlook.NameSpace
  Dim Folders As Outlook.Folders
  Dim CurrF As Outlook.MAPIFolder
  Dim F As Outlook.MAPIFolder
  Dim ExpandDefaultStoreOnly As Boolean

  ExpandDefaultStoreOnly = True

  Set Ns = Application.GetNamespace("Mapi")
  Set CurrF = Application.ActiveExplorer.CurrentFolder

  If ExpandDefaultStoreOnly = True Then
    Set F = Ns.GetDefaultFolder(olFolderInbox)
    Set F = F.Parent
    Set Folders = F.Folders
    LoopFolders Folders, True

  Else
    LoopFolders Ns.Folders, True
  End If

  DoEvents
  Set Application.ActiveExplorer.CurrentFolder = CurrF
End Sub

Private Sub LoopFolders(Folders As Outlook.Folders, _
  ByVal bRecursive As Boolean _
)
  Dim F As Outlook.MAPIFolder

  For Each F In Folders
    Set Application.ActiveExplorer.CurrentFolder = F
    DoEvents

    If bRecursive Then
      If F.Folders.Count Then
        LoopFolders F.Folders, bRecursive
      End If
    End If
  Next
End Sub

Please try this VBA code and check if it works for you, to get more information please refer to this article:
http://www.msoutlook.info/question/595

Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Hope it's helpful.

Regards,

Emi Zhang
TechNet Community Su

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2015 4:51am

Thanks for the response Emi.  I wasn't really looking for a solution that required any coding.  I was hoping there was a configuration setting within Outlook I could use.


July 24th, 2015 7:39am

Thanks for the response Emi.  I wasn't really looking for a solution that required any coding.  I was hoping there was a configuration setting within Outlook I could use.


Free Windows Admin Tool Kit Click here and download it now
July 24th, 2015 11:37am

Thanks for the response Emi.  I wasn't really looking for a solution that required any coding.  I was hoping there was a configuration setting within Outlook I could use.


July 24th, 2015 11:37am

Hi blinkyjesus,

As far as I know, there is no configuration setting you can use to get your result.

But you can check if the Favorites list can be a workaround for you.

Regards,

Emi Zhang
TechNet Community Su

Free Windows Admin Tool Kit Click here and download it now
July 29th, 2015 3:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics