vba - Outlook 2016 macro to edit received email
问题描述
I would like to be able to add notes to received emails so that I can keep track of work I've done or need to do. We just switched from Lotus Notes to Office365 and after doing some research I've figured out how to edit a received email. You have to open the email then go to Actions --> Edit Message.
Those aren't too many steps but a keyboard shortcut or button would make it much faster.
I did some research and learned a bit about Macros. I don't know how to write VB and was wondering if anyone could give me a hand writing it.
These are the steps I would need:
- Open the currently selected email
- Make it editable
As a bonus I would like change the font color to red. It just delineates text I've added versus the original email.
Thanks, any help would be appreciated.
解决方案
谢谢@victor,你的评论把我带到了正确的地方。
这是我使用的,以防其他人想知道:
Sub OpenForEditing()
ActiveExplorer.Selection(1).Display
ActiveInspector.CommandBars.ExecuteMso "EditMessage"
End Sub
推荐阅读
- python - 迭代、计算和组合两个具有多个元组的列表
- html - 构建具有重复行和稀疏标题的 CSS 网格布局
- django - 在 python 中格式化日期,就像在 django 模板中所做的那样
- java - java.lang.IllegalArgumentException:列名无效
- html - 是否可以将网络摄像头视频嵌入到浏览器屏幕截图中?
- java - 调用长度时避免做 != null
- docker - 为 Kubernetes 中的容器配置 HTTP 代理
- java - 结尾部分不允许使用 Gradle 内容
- c# - 发送带有包含在 URL .NET 中的附件的电子邮件
- python - 如何从 URL 中的第二个表中抓取数据?