且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以编程方式更改电子邮件正文中的字体属性

更新时间:2022-12-03 11:22:04

首先,我建议从

First of all, I'd suggest starting from the Getting Started with VBA in Outlook 2010 article in MSDN.

您可以使用 HTMLBody 项目的a>属性以获取消息正文的HTML内容,或使用Word对象模型来完成工作.检查器的 WordEditor 属性类从WOM(Word对象模型)返回Document类的实例.请参见第17章:使用项目实体有关更多信息.

You can use the HTMLBody property of Outlook items to get the HTML content of the message body or use the Word object model to get the job done. The WordEditor property of the Inspector class returns an instance of the Document class from the WOM (Word object model). See Chapter 17: Working with Item Bodies for more information.