VBA 用于在预览窗格中查看邮件项目的脚本

VBA script to view mail item in preview pane

有没有办法在预览窗格中查看邮件项目。我搜索并找到了 mailitem.display 方法,但它在单独的 window 中打开邮件,但我想在预览窗格中看到它。

问候 萨阿德

您需要使用资源管理器的 AddToSelection method of the Explorer class. Don't forget to clear the Selection object before using the AddToSelection method. The ClearSelection 方法 class 取消活动资源管理器中的任何选择。如果阅读窗格可见并且当前视图是 table 视图,则调用 ClearSelection 会使阅读窗格变为空白。