代码之家  ›  专栏  ›  技术社区  ›  Shane

在Outlook对象模型中,有没有一种方法可以查看Outlook位于哪个“视图”中?

  •  0
  • Shane  · 技术社区  · 7 年前

    Application.ActiveExplorer.CurrentFolder 并检查 DefaultMessageClass 财产。

    有没有更直接的方法来确定用户在下面的图标菜单中选择了什么?

    here

    1 回复  |  直到 5 年前
        1
  •  0
  •   niton    7 年前
    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
    
    推荐文章