vba - 如何更改与 Outlook Mailitem 关联的 Inspector.EditorType?
问题描述
在我的代码中,我首先使用 Word Inspector 显示和编辑 Outlook Mailitem:
Dim oMail As Outlook.MailItem
Set oMail = OutlApp.CreateItemFromTemplate(TemplatePath & TemplateName)
oMail.Display
Dim WordDoc As Word.Document
Set WordDoc = oMail.GetInspector.WordEditor
然后我正在使用 WordDoc 进行一些操作,例如在表格中添加条目等。在此之后,我想关闭 WordEditor 并在普通 Outlook.Inspector 中打开项目
当然oMail.GetInspector.EditorType = olEditorHTML
不起作用,因为 EditorType 是只读属性。但是,但是我尝试显示 Mail,EditorType
stays olEditorWord
,并且我看不到更改它的简单方法。
是否可以将EditorType
关联更改为Outlook.Mailitem
不保存并重新打开它?
解决方案
推荐阅读
- python - 如何在图像分割中包含几何信息?
- reactjs - 如何使用 backBehavior: 'history' on my bottomtabnaviagor
- azure-application-insights - 如何将 Application Insights Analytics 查询从 Dev 导出到 Freeze 环境
- if-statement - 使用 Bytes 时,While 语句无法比较它似乎只需要 int
- c# - 通用方法总是返回 NULL
- html - 通过 Span 标签进行网页抓取
- graphviz - 如何在graphviz中设置子图宽度?
- azure - 如果 Azure 数据工厂集成运行时不存在,则创建它 - Azure PowerShell
- laravel - Laravel 5.4:Swift_TransportException 尝试使用预定命令发送通知
- c++ - 为什么 boost::asio::async_write 需要这么多时间?