使用 VBA 在 Outlook 中切换“对话视图”

问题描述 投票:0回答:1

是否有任何机制可以在 Outlook 中以编程方式启用/禁用“对话视图”?

我只看到四个记录的与对话相关的属性:AlwaysExpandConversation、ShowConversationByDate、ShowConversationSendersAboveSubject 和 ShowFullConversations。这些都假设已经应用了“对话视图”。

我是否缺少完全打开和关闭对话视图的属性/方法?

vba outlook
1个回答
0
投票

CommandBars.ExecuteMso 方法(Office)
“在没有特定命令的对象模型的情况下,此方法很有用。适用于内置按钮、toggleButtons 和 splitButtons 的控件。...”

Sub ExecuteMso_ShowInConversation()

    ' Hover over the button where you would add it to the ribbon,
    '  you will see the text ends with "ShowInConversations"
    ActiveExplorer.CommandBars.ExecuteMso ("ShowInConversations")
 
End Sub

Office 2016 帮助文件:Office Fluent 用户界面控件标识符

GitHub:Office Fluent UI 命令标识符

© www.soinside.com 2019 - 2024. All rights reserved.