0

How can what category of items Outlook is showing as indicated by the highlighted icon shown at the bottom left of the window, in the case of of image below it is email. I want a method that works regardless of which folder or calendar is selected as user might have multiple. The closest I have got so far is to examine Application.ActiveExplorer.CurrentFolder and check the DefaultMessageClass property.

Is there a more direct way of determining what the user has selected in the icon menu show below?

here

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Shane
  • 2,271
  • 3
  • 27
  • 55

1 Answers1

0
Sub NavigationPaneModuleName()

    Dim objPane As NavigationPane
    Dim objModule As Object

    ' Get the current NavigationPane object.
    Set objPane = ActiveExplorer.NavigationPane

    Debug.Print objPane.CurrentModule.Name

EndRoutine:
    Set objModule = Nothing
    Set objPane = Nothing

End Sub
niton
  • 8,771
  • 21
  • 32
  • 52